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 | 6d6909366b3aeec732c0109fb3922ae265d4bb61 (patch) | |
tree | 6e877dc53fc370e767e4ead638621fd78a7220eb /IRC | |
parent | 4495381d152876aca97c691e4d0b38f283f36012 (diff) |
reaktor.py: set cwd
Diffstat (limited to 'IRC')
-rwxr-xr-x | IRC/reaktor.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/IRC/reaktor.py b/IRC/reaktor.py index 830e6a9..b820039 100755 --- a/IRC/reaktor.py +++ b/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)) |