RUNEVT RUNSYS dirname split space

This commit is contained in:
cuu 2019-06-24 17:49:43 +08:00
parent 70a4c48c67
commit dd6aa87ee6

View File

@ -343,7 +343,7 @@ def event_process(event,main_screen):
pygame.quit()
gobject_main_loop.quit()
os.chdir( GetExePath())
exec_app_cmd = "cd "+os.path.dirname(event.message)+";"
exec_app_cmd = "cd "+os.path.dirname(event.message.split(" ")[0])+";"
exec_app_cmd += event.message
exec_app_cmd += "; sync & cd "+GetExePath()+"; exec python "+myscriptname
print(exec_app_cmd)
@ -362,7 +362,7 @@ def event_process(event,main_screen):
pygame.quit()
gobject_main_loop.quit()
os.chdir( GetExePath())
exec_app_cmd = "cd "+os.path.dirname(event.message)+";"
exec_app_cmd = "cd "+os.path.dirname(event.message.split(" ")[0])+";"
exec_app_cmd += event.message
exec_app_cmd += "; sync & cd "+GetExePath()+"; exec python "+myscriptname
print(exec_app_cmd)