We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b72576 commit bcf8edfCopy full SHA for bcf8edf
run.py
@@ -637,20 +637,7 @@ def ReadELFInfo(f):
637
638
639
def FindBaseDir():
640
- '''Crawl backwards, starting from the directory containing this script,
641
- until we find the native_client/ directory.
642
- '''
643
-
644
- curdir = os.path.abspath(sys.argv[0])
645
- while os.path.basename(curdir) != 'native_client':
646
- curdir,subdir = os.path.split(curdir)
647
- if subdir == '':
648
- # We've hit the file system root
649
- break
650
651
- if os.path.basename(curdir) != 'native_client':
652
- Fatal('Unable to find native_client directory!')
653
- return curdir
+ return os.path.dirname(__file__)
654
655
656
if __name__ == '__main__':
0 commit comments