From 1dd0e512412d2eb9c4544a710d1fc115baca320b Mon Sep 17 00:00:00 2001
From: Yngve Inntjore Levinsen <Yngve.Levinsen@esss.se>
Date: Fri, 21 Oct 2016 14:57:19 +0200
Subject: [PATCH] making script python3 proof

---
 scripts/tracewin | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/tracewin b/scripts/tracewin
index 303afd5..3706ce3 100644
--- a/scripts/tracewin
+++ b/scripts/tracewin
@@ -1,4 +1,5 @@
 #!/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)
-- 
GitLab