File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ def bind_and_listen(hostport, execmodel):
94
94
95
95
96
96
def startserver (serversock , loop = False ):
97
+ execute_path = os .getcwd ()
97
98
try :
98
99
while 1 :
99
100
try :
@@ -108,6 +109,7 @@ def startserver(serversock, loop=False):
108
109
else :
109
110
excinfo = sys .exc_info ()
110
111
print_ ("got exception" , excinfo [1 ])
112
+ os .chdir (execute_path )
111
113
if not loop :
112
114
break
113
115
finally :
@@ -123,10 +125,10 @@ def startserver(serversock, loop=False):
123
125
else :
124
126
hostport = ":8888"
125
127
from execnet .gateway_base import get_execmodel
126
-
127
128
execmodel = get_execmodel ("thread" )
128
129
serversock = bind_and_listen (hostport , execmodel )
129
- startserver (serversock , loop = False )
130
+ startserver (serversock , loop = True )
131
+
130
132
elif __name__ == "__channelexec__" :
131
133
chan = globals ()["channel" ]
132
134
execmodel = chan .gateway .execmodel
You can’t perform that action at this time.
0 commit comments