diff options
author | tv <tv@nomic.retiolum> | 2014-04-20 12:13:33 +0200 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2014-04-20 12:13:33 +0200 |
commit | 01d8f1f70a889519fd181f889e070450b8e62c97 (patch) | |
tree | e5a012faf4f4ff98b15e2e66e3dbf0bd7f340016 /Reaktor/IRC | |
parent | ca5d255950524d1e90dd3370b1d42c2cf28124dd (diff) |
reaktor.py: set cwd
Diffstat (limited to 'Reaktor/IRC')
-rwxr-xr-x | Reaktor/IRC/reaktor.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Reaktor/IRC/reaktor.py b/Reaktor/IRC/reaktor.py index 830e6a93..b8200398 100755 --- a/Reaktor/IRC/reaktor.py +++ b/Reaktor/IRC/reaktor.py @@ -60,6 +60,8 @@ class Reaktor(asybot): if match.groupdict().get('args',None): myargv += shlex.split(match.groupdict()['args']) + cwd = getconf('workdir') + env = {} env['_prefix'] = prefix env['_from'] = prefix.split('!', 1)[0] @@ -74,7 +76,7 @@ class Reaktor(asybot): env['config_filename'] = os.path.abspath(config_filename) start = time() try: - p = popen(myargv, bufsize=1, stdout=PIPE, stderr=PIPE, env=env) + p = popen(myargv, bufsize=1, stdout=PIPE, stderr=PIPE, env=env, cwd=cwd) except (OSError, Exception) as error: self.ME(target, 'brain damaged') log.error('OSError@%s: %s' % (myargv, error)) |