From: abd Date: Mon, 27 Nov 2006 11:47:15 +0000 (+0000) Subject: Fix errors for crossplatform code X-Git-Tag: Before_merging_with_V3_2_4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FWPdev;p=modules%2Fvisu.git Fix errors for crossplatform code "not" instead "!=" --- 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