daemon: Export the filename as a global variable when executing a file.
This commit is contained in:
parent
52fdc300b8
commit
598cd87080
1 changed files with 2 additions and 1 deletions
|
@ -938,7 +938,8 @@ class CoreRequestHandler(SocketServer.BaseRequestHandler):
|
|||
opensessionxml(session, filename, start=True)
|
||||
else:
|
||||
t = threading.Thread(target = execfile,
|
||||
args=(filename, {'server': server}))
|
||||
args=(filename, {'__file__': filename,
|
||||
'server': server}))
|
||||
t.daemon = True
|
||||
t.start()
|
||||
time.sleep(0.25) # allow time for session creation
|
||||
|
|
Loading…
Reference in a new issue