From 84b5a2fad51e7f7f230f5ee7a717280912d10472 Mon Sep 17 00:00:00 2001 From: Lele Long Date: Tue, 28 Oct 2014 00:05:13 +0800 Subject: [PATCH] Fix #369 --- supervisor/process.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/supervisor/process.py b/supervisor/process.py index b01717585..72fca73fb 100644 --- a/supervisor/process.py +++ b/supervisor/process.py @@ -116,7 +116,11 @@ def get_execv_args(self): raise BadCommand("command is empty") if "/" in program: - filename = program + if program.startswith('/'): + filename = program + else: + filename = os.path.join(self.config.directory, program) + try: st = self.config.options.stat(filename) except OSError: