diff options
author | Christian Sandberg <christiansandberg@me.com> | 2017-09-20 13:27:29 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-09-24 19:20:30 (GMT) |
commit | 6b6c51f010a032f5f7a7978845dd333d31b98ebf (patch) | |
tree | 67e193fe0c459369d7ff7c3ec20aa973f2ce04da /src | |
parent | f31e5c1b5583801aa31f834f44110d2f22fead66 (diff) | |
download | SCons-6b6c51f010a032f5f7a7978845dd333d31b98ebf.zip SCons-6b6c51f010a032f5f7a7978845dd333d31b98ebf.tar.gz SCons-6b6c51f010a032f5f7a7978845dd333d31b98ebf.tar.bz2 |
Fix usage on embedded Python
First entry in sys.path is not always the script directory.
Diffstat (limited to 'src')
-rw-r--r-- | src/script/scons.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/scons.py b/src/script/scons.py index bdf0cea..f2a44f8 100644 --- a/src/script/scons.py +++ b/src/script/scons.py @@ -65,7 +65,7 @@ Python < 3.5 is not yet supported.\n" sys.exit(1) -script_dir = sys.path[0] +script_dir = os.path.dirname(os.path.realpath(__file__)) if script_dir in sys.path: sys.path.remove(script_dir) |