Skip to content

Commit 5fc01fc

Browse files
committed
Forced use local mod for imports in utils
1 parent 6b6b8a3 commit 5fc01fc

8 files changed

Lines changed: 16 additions & 4 deletions

File tree

get-min-py/utils/bump.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import re
1+
import re, sys
22
from pathlib import Path
33
from types import SimpleNamespace as sn
44

55
from lib import toml
6+
7+
sys.path.insert(0, str(Path(__file__).parent.parent / 'src')) # to force use local mod
68
from get_min_py.cli.lib import data, log
79

810
paths = sn(root=Path(__file__).parent.parent)

get-min-py/utils/clean.py

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

5+
sys.path.insert(0, str(Path(__file__).parent.parent / 'src')) # to force use local mod
56
from get_min_py.cli.lib import data, log
67

78
def main():

is-unicode-supported/utils/bump.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import re
1+
import re, sys
22
from pathlib import Path
33
from types import SimpleNamespace as sn
44

55
from lib import toml
6+
7+
sys.path.insert(0, str(Path(__file__).parent.parent / 'src')) # to force use local mod
68
from is_unicode_supported.cli.lib import data, log
79

810
paths = sn(root=Path(__file__).parent.parent)

is-unicode-supported/utils/clean.py

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

5+
sys.path.insert(0, str(Path(__file__).parent.parent / 'src')) # to force use local mod
56
from is_unicode_supported.cli.lib import data, log
67

78
def main():

remove-json-keys/utils/bump.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import re
1+
import re, sys
22
from pathlib import Path
33
from types import SimpleNamespace as sn
44

55
from lib import toml
6+
7+
sys.path.insert(0, str(Path(__file__).parent.parent / 'src')) # to force use local mod
68
from remove_json_keys.cli.lib import data, log
79

810
paths = sn(root=Path(__file__).parent.parent)

remove-json-keys/utils/clean.py

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

5+
sys.path.insert(0, str(Path(__file__).parent.parent / 'src')) # to force use local mod
56
from remove_json_keys.cli.lib import data, log
67

78
def main():

translate-messages/utils/bump.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import re
1+
import re, sys
22
from pathlib import Path
33
from types import SimpleNamespace as sn
44

55
from lib import toml
6+
7+
sys.path.insert(0, str(Path(__file__).parent.parent / 'src')) # to force use local mod
68
from translate_messages.cli.lib import data, log
79

810
paths = sn(root=Path(__file__).parent.parent)

translate-messages/utils/clean.py

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

5+
sys.path.insert(0, str(Path(__file__).parent.parent / 'src')) # to force use local mod
56
from translate_messages.cli.lib import data, log
67

78
def main():

0 commit comments

Comments
 (0)