Skip to content

Commit ab77357

Browse files
committed
remove adding scripts to sys.path
since we are not relative importing, no longer a problem
1 parent 17a09fc commit ab77357

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

scripts/build_locally.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
import os
1919
import sys
2020

21-
# add scripts dir to Python path so we can import _build_helper
22-
sys.path.insert(0, os.path.abspath("scripts"))
23-
24-
from _build_helper import ( # noqa: E402
21+
from _build_helper import (
2522
build_extension,
2623
clean_build_dir,
2724
err,

scripts/gen_coverage.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
import sys
2222
import sysconfig
2323

24-
# add scripts dir to Python path so we can import _build_helper
25-
sys.path.insert(0, os.path.abspath("scripts"))
26-
27-
from _build_helper import ( # noqa: E402
24+
from _build_helper import (
2825
build_extension,
2926
capture_cmd_output,
3027
clean_build_dir,

scripts/gen_docs.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@
1919
import subprocess
2020
import sys
2121

22-
# add scripts dir to Python path so we can import _build_helper
23-
sys.path.insert(0, os.path.abspath("scripts"))
24-
25-
from _build_helper import ( # noqa: E402
22+
from _build_helper import (
2623
build_extension,
2724
capture_cmd_output,
2825
clean_build_dir,

0 commit comments

Comments
 (0)