Browse Source

Fix error in run_boto_script

Cheng Zhao 8 years ago
parent
commit
c943e4a61f
1 changed files with 1 additions and 7 deletions
  1. 1 7
      script/lib/util.py

+ 1 - 7
script/lib/util.py

@@ -220,13 +220,7 @@ def run_boto_script(access_key, secret_key, script_name, *args):
       [env.get('PYTHONPATH', '')] + boto_path_dirs())
 
   boto = os.path.join(BOTO_DIR, 'bin', script_name)
-
-  args = [
-    sys.executable,
-    boto
-  ] + args
-
-  execute(args, env)
+  execute([sys.executable, boto] + list(args), env)
 
 
 def s3put(bucket, access_key, secret_key, prefix, key_prefix, files):