From 0631c72a280c1eb8bc338e3fda72d7661df8d2d5 Mon Sep 17 00:00:00 2001 From: abd Date: Mon, 27 Nov 2006 11:47:15 +0000 Subject: [PATCH] Fix errors for crossplatform code "not" instead "!=" --- src/VISU_SWIG/VISU_Example_02.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/VISU_SWIG/VISU_Example_02.py b/src/VISU_SWIG/VISU_Example_02.py index 0c52c6fa..cfe0ab77 100644 --- a/src/VISU_SWIG/VISU_Example_02.py +++ b/src/VISU_SWIG/VISU_Example_02.py @@ -27,6 +27,7 @@ import visu_gui import SALOMEDS import VISU import os +import sys medFile = os.getenv("DATA_DIR") + "/MedFiles/fra.med" @@ -245,7 +246,7 @@ print "OK" file_new = str+'/VISU_005_new.hdf' -if sys.platform != "win32": +if not sys.platform == "win32": command = "mv " + file + " " + file_new else: command = "move /Y " + file + " " + file_new @@ -380,7 +381,7 @@ if aRestoreRes != 1 : print "Error" else : print "OK" # Remove the study file -if sys.platform != "win32": +if not sys.platform == "win32": command = "rm -r " + file else: command = "del /F " + file -- 2.39.2