Skip to content

Commit

Permalink
Better name for this script, since it doesn't do anything in parallel.
Browse files Browse the repository at this point in the history
  • Loading branch information
zrax committed Apr 28, 2018
1 parent 56e4426 commit 1c01ca7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/pyparc → scripts/pymultic
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# PyParC - Python Parallel Compiler
# PyMultiC - Python Multiple Compiler

import os
import sys
Expand Down Expand Up @@ -98,13 +98,13 @@ for snek in pythons:
if bcver in {'1.0', '1.1', '1.2', '1.3', '1.4'}:
# The hard way -- hope your code is safe...
srcdir = os.path.dirname(os.path.realpath(infile))
comptmp = os.path.join(srcdir, 'pyparc_temp.py')
comptmp = os.path.join(srcdir, 'pymc_temp.py')
if os.path.exists(comptmp):
os.unlink(comptmp)
shutil.copyfile(infile, comptmp)
cwdsave = os.getcwd()
os.chdir(srcdir)
proc = subprocess.Popen([pyexe, '-c', 'import pyparc_temp'])
proc = subprocess.Popen([pyexe, '-c', 'import pymc_temp'])
proc.communicate()
os.chdir(cwdsave)
if os.path.exists(comptmp + 'o'):
Expand Down

0 comments on commit 1c01ca7

Please sign in to comment.