diff options
author | Erik Johnston <erik@matrix.org> | 2015-10-01 09:21:27 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-10-01 09:21:36 +0100 |
commit | 0a4b7226fc0ce163c7ba2a1a62d6125b3fd1e55d (patch) | |
tree | a6d8b368bb416b293ecfa0416d081b805a97ac5b /synapse/app/synctl.py | |
parent | Merge pull request #287 from matrix-org/erikj/canonical_alias (diff) | |
download | synapse-0a4b7226fc0ce163c7ba2a1a62d6125b3fd1e55d.tar.xz |
Don't change cwd in synctl
Diffstat (limited to 'synapse/app/synctl.py')
-rwxr-xr-x | synapse/app/synctl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/app/synctl.py b/synapse/app/synctl.py index 1078d19b79..5d82beed0e 100755 --- a/synapse/app/synctl.py +++ b/synapse/app/synctl.py @@ -32,9 +32,9 @@ def start(configfile): print "Starting ...", args = SYNAPSE args.extend(["--daemonize", "-c", configfile]) - cwd = os.path.dirname(os.path.abspath(__file__)) + try: - subprocess.check_call(args, cwd=cwd) + subprocess.check_call(args) print GREEN + "started" + NORMAL except subprocess.CalledProcessError as e: print ( |