Skip to content
Snippets Groups Projects
Commit 1dd0e512 authored by Yngve Levinsen's avatar Yngve Levinsen
Browse files

making script python3 proof

parent adf73290
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
from __future__ import print_function
import argparse
import os
......@@ -72,13 +73,13 @@ for arg in ['dst_file1', 'dst_file2',
if args.outpath:
if not os.path.isdir(args.outpath):
print "WARNING: output directory does not exist, creating.."
print("WARNING: output directory does not exist, creating..")
os.makedirs(args.outpath)
cmd.append("path_cal='"+os.path.abspath(args.outpath)+"'")
if args.seed:
cmd.append("random_seed="+str(args.seed))
print ' '.join(cmd)
print(' '.join(cmd))
if args.run:
# TraceWin gives error when using subprocess.call (both for shell equals True and False)
#subprocess.call(cmd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment