Skip to content

Commit 7408b17

Browse files
committed
Moved shared ../../ to start of f-string in cli.project_root init for readability
1 parent e858d0e commit 7408b17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • translate-messages/src/translate_messages/lib

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def load(cli, caller_file):
4646
# Load from config file
4747
cli.config = sns()
4848
cli.project_root = os.path.join(os.path.dirname(caller_file),
49-
f"{ '' if 'src' in os.path.dirname(caller_file) else '../../' }../../")
49+
f"../../{ '' if 'src' in os.path.dirname(caller_file) else '../../' }")
5050
possile_config_filenames = [
5151
'.translate-msgs.config.json', 'translate-msgs.config.json',
5252
f'.{cli.name}.config.json', f'{cli.name}.config.json'

0 commit comments

Comments
 (0)