Skip to content

Commit

Permalink
shell removed from default in unix
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Oct 30, 2015
1 parent ec2e460 commit d282f91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/appier/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
__license__ = "Apache License, Version 2.0"
""" The license for the module """

import os
import re
import sys
import json
Expand Down Expand Up @@ -1058,7 +1059,8 @@ def sanitize(function, kwargs):
removal.append(name)
for name in removal: del kwargs[name]

def execute(args, command = None, path = None, shell = True, encoding = None):
def execute(args, command = None, path = None, shell = None, encoding = None):
if shell == None: shell = os.name == "nt"
if not encoding: encoding = sys.getfilesystemencoding()
if command: args = command.split(" ")
process = subprocess.Popen(
Expand Down

0 comments on commit d282f91

Please sign in to comment.