Skip to content

Commit

Permalink
Fix program failed to start when directory defined with ~
Browse files Browse the repository at this point in the history
  • Loading branch information
waketzheng committed Aug 29, 2024
1 parent 29eeb9d commit fc5b6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervisor/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def _spawn_as_child(self, filename, argv):
cwd = self.config.directory
try:
if cwd is not None:
options.chdir(cwd)
options.chdir(os.path.expanduser(cwd))
except OSError as why:
code = errno.errorcode.get(why.args[0], why.args[0])
msg = "couldn't chdir to %s: %s\n" % (cwd, code)
Expand Down

0 comments on commit fc5b6fb

Please sign in to comment.