projects
/
platform
/
upstream
/
scons.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f31e5c1
)
Fix usage on embedded Python
author
Christian Sandberg
<christiansandberg@me.com>
Wed, 20 Sep 2017 13:27:29 +0000
(15:27 +0200)
committer
William Deegan
<bill@baddogconsulting.com>
Sun, 24 Sep 2017 19:20:30 +0000
(12:20 -0700)
First entry in sys.path is not always the script directory.
src/script/scons.py
patch
|
blob
|
history
diff --git
a/src/script/scons.py
b/src/script/scons.py
index bdf0ceab498feeaeb23539c880127364158e1781..f2a44f8b665b3a6d5d5fa1422b7cd42920e76791 100644
(file)
--- 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)