More path confusion with shutil

This commit is contained in:
Jorrit Wronski
2015-07-06 21:19:38 +02:00
parent 099d68e63f
commit c9dfd3e58a

View File

@@ -176,8 +176,8 @@ def run_command(cmd):
stderr=subprocess.PIPE,
stdin=subprocess.PIPE).communicate()
#subprocess.check_call('conda build .', shell = True, stdout = sys.stdout, stderr = sys.stderr)
filename = os.path.abspath(run_command('conda build --output .')[0]).strip()
tar = os.path.abspath(os.path.join(os.path.dirname(__file__),'conda','Python_conda'))
filename = str(os.path.abspath(run_command('conda build --output .')[0])).strip()
tar = str(os.path.abspath(os.path.join(os.path.dirname(__file__),'conda','Python_conda'))).strip()
try:
os.makedirs(tar)
except Exception as e: