mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 17:58:50 +01:00
Merge pull request #227 from cuu/master
RUNEVT RUNSYS dirname strip and split space
This commit is contained in:
commit
457adc1b21
@ -343,7 +343,8 @@ 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.strip().split(" ")[0])+";"
|
||||
exec_app_cmd += event.message
|
||||
exec_app_cmd += "; sync & cd "+GetExePath()+"; exec python "+myscriptname
|
||||
print(exec_app_cmd)
|
||||
@ -362,7 +363,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.strip().split(" ")[0])+";"
|
||||
exec_app_cmd += event.message
|
||||
exec_app_cmd += "; sync & cd "+GetExePath()+"; exec python "+myscriptname
|
||||
print(exec_app_cmd)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user