Skip to content

Commit 829c81a

Browse files
committed
Corrected msgs_path
1 parent 7d497bb commit 829c81a

16 files changed

Lines changed: 16 additions & 48 deletions

File tree

ai-personas/utils/clean.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
import shutil, sys
33
from types import SimpleNamespace as sn
44

5-
import find_project_root
6-
75
from .lib import data, log
86

97
def main():
10-
msgs_path = Path(find_project_root()) / 'data/messages.json' # type: ignore
8+
msgs_path = Path(__file__).parent / 'data/messages.json'
119
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1210
targets = ['*.pyc']
1311
if '--py2' not in sys.argv:

computer-languages/utils/clean.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
import shutil, sys
33
from types import SimpleNamespace as sn
44

5-
import find_project_root
6-
75
from .lib import data, log
86

97
def main():
10-
msgs_path = Path(find_project_root()) / 'data/messages.json' # type: ignore
8+
msgs_path = Path(__file__).parent / 'data/messages.json'
119
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1210
targets = ['*.pyc']
1311
if '--py2' not in sys.argv:

data-languages/utils/clean.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
import shutil, sys
33
from types import SimpleNamespace as sn
44

5-
import find_project_root
6-
75
from .lib import data, log
86

97
def main():
10-
msgs_path = Path(find_project_root()) / 'data/messages.json' # type: ignore
8+
msgs_path = Path(__file__).parent / 'data/messages.json'
119
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1210
targets = ['*.pyc']
1311
if '--py2' not in sys.argv:

find-project-root/utils/clean.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
import shutil, sys
33
from types import SimpleNamespace as sn
44

5-
import find_project_root
6-
75
from .lib import data, log
86

97
def main():
10-
msgs_path = Path(find_project_root()) / 'data/messages.json' # type: ignore
8+
msgs_path = Path(__file__).parent / 'data/messages.json'
119
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1210
targets = ['*.pyc']
1311
if '--py2' not in sys.argv:

get-min-py/utils/clean.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
import shutil, sys
33
from types import SimpleNamespace as sn
44

5-
import find_project_root
6-
75
from src.get_min_py.cli.lib import data, log
86

97
def main():
10-
msgs_path = Path(find_project_root()) / 'data/messages.json' # type: ignore
8+
msgs_path = Path(__file__).parent / 'data/messages.json'
119
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1210
targets = ['*.pyc']
1311
if '--py2' not in sys.argv:

is-legacy-terminal/utils/clean.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
import shutil, sys
33
from types import SimpleNamespace as sn
44

5-
import find_project_root
6-
75
from src.is_legacy_terminal.cli.lib import data, log
86

97
def main():
10-
msgs_path = Path(find_project_root()) / 'data/messages.json' # type: ignore
8+
msgs_path = Path(__file__).parent / 'data/messages.json'
119
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1210
targets = ['*.pyc']
1311
if '--py2' not in sys.argv:

is-unicode-supported/utils/clean.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
import shutil, sys
33
from types import SimpleNamespace as sn
44

5-
import find_project_root
6-
75
from src.is_unicode_supported.cli.lib import data, log
86

97
def main():
10-
msgs_path = Path(find_project_root()) / 'data/messages.json' # type: ignore
8+
msgs_path = Path(__file__).parent / 'data/messages.json'
119
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1210
targets = ['*.pyc']
1311
if '--py2' not in sys.argv:

latin-locales/utils/clean.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
import shutil, sys
33
from types import SimpleNamespace as sn
44

5-
import find_project_root
6-
75
from .lib import data, log
86

97
def main():
10-
msgs_path = Path(find_project_root()) / 'data/messages.json' # type: ignore
8+
msgs_path = Path(__file__).parent / 'data/messages.json'
119
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1210
targets = ['*.pyc']
1311
if '--py2' not in sys.argv:

markup-languages/utils/clean.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
import shutil, sys
33
from types import SimpleNamespace as sn
44

5-
import find_project_root
6-
75
from .lib import data, log
86

97
def main():
10-
msgs_path = Path(find_project_root()) / 'data/messages.json' # type: ignore
8+
msgs_path = Path(__file__).parent / 'data/messages.json'
119
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1210
targets = ['*.pyc']
1311
if '--py2' not in sys.argv:

non-latin-locales/utils/clean.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
import shutil, sys
33
from types import SimpleNamespace as sn
44

5-
import find_project_root
6-
75
from .lib import data, log
86

97
def main():
10-
msgs_path = Path(find_project_root()) / 'data/messages.json' # type: ignore
8+
msgs_path = Path(__file__).parent / 'data/messages.json'
119
msgs = sn(**{ key:val['message'] for key,val in data.json.read(msgs_path)['clean'].items() })
1210
targets = ['*.pyc']
1311
if '--py2' not in sys.argv:

0 commit comments

Comments
 (0)