summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-17 17:44:59 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-17 17:44:59 +0000
commitb6e8bd41bb45bc6d19b3fbde6618f648faced2a0 (patch)
tree5d0ccbded529fc42922fabf5f0817d376c44e5d1
parentc8e156fe181c8e62fda9f9a999af1f0a0980a0ce (diff)
downloadimport-b6e8bd41bb45bc6d19b3fbde6618f648faced2a0.tar.gz
omnibus: Simplify 'bundler exec' call
There's no need for quite so many subshells.
-rw-r--r--baserockimport/app.py6
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]