Skip to content

Commit 118f251

Browse files
committed
Moved cli.short_name init to package_data.json
1 parent 5ef34be commit 118f251

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

translate-messages/src/translate_messages/lib/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def load(cli, caller_file):
4848
cli.config = sns()
4949
cli.project_root = path.join(path.dirname(caller_file),
5050
f"../../{ '' if 'src' in path.dirname(caller_file) else '../../' }")
51-
if not getattr(cli, 'short_name', None) : cli.short_name = cli.name.replace('messages', 'msgs')
5251
possile_config_filenames = [
5352
f'.{cli.short_name}.config.json', f'{cli.short_name}.config.json',
5453
f'.{cli.short_name}.config.jsonc', f'{cli.short_name}.config.json',

translate-messages/src/translate_messages/package_data.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "translate-messages",
3+
"short_name": "translate-msgs",
34
"author": { "name": "Adam Lui", "email": "adam@kudoai.com", "url": "https://github.com/adamlui" },
45
"urls": {
56
"docs": "https://github.com/adamlui/python-utils/tree/main/translate-messages/docs",

0 commit comments

Comments
 (0)