]> khamidou — GitHub mirrors - electron.git/commitdiff
The source_root was wrong computed
authorBernhard Millauer <SeriousM@users.noreply.github.com>
Tue, 13 May 2014 23:07:26 +0000 (01:07 +0200)
committerBernhard Millauer <SeriousM@users.noreply.github.com>
Tue, 13 May 2014 23:07:26 +0000 (01:07 +0200)
Using 'SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))' leads to an empty string if the path is relative.

script/build.py

index ce04c8621ec4350de45b62bc6ea02f9ae7660ca2..42fc24b6d2c8eb85dd5054f7a6b78e0576c5b5cb 100755 (executable)
@@ -7,7 +7,7 @@ import sys
 
 
 CONFIGURATIONS = ['Release', 'Debug']
-SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
+SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
 
 
 def main():