Skip to content

Commit fc5b6fb

Browse files
committed
Fix program failed to start when directory defined with ~
1 parent 29eeb9d commit fc5b6fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def _spawn_as_child(self, filename, argv):
325325
cwd = self.config.directory
326326
try:
327327
if cwd is not None:
328-
options.chdir(cwd)
328+
options.chdir(os.path.expanduser(cwd))
329329
except OSError as why:
330330
code = errno.errorcode.get(why.args[0], why.args[0])
331331
msg = "couldn't chdir to %s: %s\n" % (cwd, code)

0 commit comments

Comments
 (0)