diff options
Diffstat (limited to 'baserockimport/app.py')
-rw-r--r-- | baserockimport/app.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/baserockimport/app.py b/baserockimport/app.py index c7f0e05..6ae3424 100644 --- a/baserockimport/app.py +++ b/baserockimport/app.py @@ -131,10 +131,8 @@ class BaserockImportApplication(cliapp.Application): # directory. That messes up any relative paths the user may have # passed on the commandline, so we do a bit of a hack to change # back to the original directory inside the `bundle exec` process. - subshell_command = "(cd %s; exec python %s)" % \ - (pipes.quote(directory), ' '.join(map(pipes.quote, args))) - shell_command = "sh -c %s" % pipes.quote(subshell_command) - return shell_command + return "cd %s; exec python %s" % ( + pipes.quote(directory), ' '.join(map(pipes.quote, args))) def reexecute_self_with_bundler(path): script = sys.argv[0] |