make CLI parameters to run_fpdb.py and fpdb.py work again

This commit is contained in:
steffen123
2010-06-20 18:09:17 +02:00
parent 5f240aabb7
commit 8e65370027
2 changed files with 4 additions and 6 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ sys.stdout.write('fpdb.py has been renamed to fpdb.pyw - now calling fpdb.pyw ..
sys.stdout.flush()
if os.name=='nt':
os.execvpe('pythonw.exe', ('pythonw.exe', 'fpdb.pyw', '-r'), os.environ)
os.execvpe('pythonw.exe', list(('pythonw.exe', 'fpdb.pyw', '-r'))+sys.argv[1:], os.environ)
else:
os.execvpe('python', ('python', 'fpdb.pyw', '-r'), os.environ)
os.execvpe('python', list(('python', 'fpdb.pyw', '-r'))+sys.argv[1:], os.environ)
# first arg is ignored (name of program being run)