File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1616from pathlib import Path
1717from tempfile import TemporaryDirectory
1818import shutil
19+ import sys
1920from packaging .version import Version
2021import nipype
2122import subprocess as sp
5455
5556sp .run (
5657 [
57- "python" ,
58+ sys . executable ,
5859 ex2rst ,
5960 "--outdir" ,
6061 str (example_dir ),
7071)
7172sp .run (
7273 [
73- "python" ,
74+ sys . executable ,
7475 ex2rst ,
7576 "--outdir" ,
7677 str (example_dir ),
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def sh(cmd):
3131def compile_tree ():
3232 """Compile all Python files below current directory."""
3333 vstr = "." .join (map (str , sys .version_info [:2 ]))
34- stat = os .system ("python %s/lib/python%s/compileall.py ." % (sys .prefix , vstr ))
34+ stat = os .system ("%s %s/lib/python%s/compileall.py ." % (sys . executable , sys .prefix , vstr ))
3535 if stat :
3636 msg = "*** ERROR: Some Python files in tree do NOT compile! ***\n "
3737 msg += "See messages above for the actual file that produced it.\n "
You can’t perform that action at this time.
0 commit comments