Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyp
Original file line number Diff line number Diff line change
Expand Up @@ -1397,12 +1397,12 @@ class Pyp(object):
print Docs.unmodified_config
sys.exit()

rerun_path = '/%s/pyp_rerun_%d.txt' %(tempfile.gettempdir(),os.getppid())
rerun_path = '%s/pyp_rerun_%d.txt' %(tempfile.gettempdir(),os.getppid())

if options.rerun: #deals with rerunning script with -r flag
if not os.path.exists(rerun_path):
gpid = int(os.popen("ps -p %d -oppid=" % os.getppid()).read().strip())
rerun_gpid_path = '/%s/pyp_rerun_%d.txt' %(tempfile.gettempdir() ,gpid)
rerun_gpid_path = '%s/pyp_rerun_%d.txt' %(tempfile.gettempdir() ,gpid)
if os.path.exists(rerun_gpid_path):
rerun_path = rerun_gpid_path
else:
Expand Down