Don't change to form config dir if we're already there.

pull/7/head
Ferry Boender 9 years ago
parent 3911207709
commit ca55acf980
  1. 4
      src/scriptform.py

@ -1177,7 +1177,9 @@ if __name__ == "__main__":
# If a form configuration was specified, change to that dir so we can
# find the job scripts and such.
if len(args) > 0:
os.chdir(os.path.dirname(args[0]))
path = os.path.dirname(args[0])
if path:
os.chdir(path)
args[0] = os.path.basename(args[0])
daemon = Daemon(options.pid_file, options.log_file,

Loading…
Cancel
Save