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 e84f44b commit 4071b75Copy full SHA for 4071b75
tools/toollib.py
@@ -36,12 +36,10 @@ def get_nibdir():
36
raise SystemExit('Invalid nibabel directory: %s' % nibdir)
37
return nibdir
38
39
-
+# import compileall and then get dir os.path.split
40
def compile_tree():
41
"""Compile all Python files below current directory."""
42
- vstr = '.'.join(map(str,sys.version_info[:2]))
43
- stat = os.system('python %s/lib/python%s/compileall.py .' %
44
- (sys.prefix,vstr))
+ stat = os.system('python -m compileall .')
45
if stat:
46
msg = '*** ERROR: Some Python files in tree do NOT compile! ***\n'
47
msg += 'See messages above for the actual file that produced it.\n'
0 commit comments