Salome HOME
Fix for bug PAL10426 ( SAMPLES_SRC: some examples doesn't have the correct path ).
[samples/datafiles.git] / Superv / Python / GraphEditGraphSwitchs.py
index 9894daeb03c868160d7b1332f1a869b8fa3a664b..cd185390e5fd198b40dcefd746ddebd80b9520b8 100644 (file)
@@ -7,7 +7,8 @@ GraphEditSwitchs = GraphSwitchs
 exec GraphEditSwitchs.ListNodes()
 InitLoopSwitch.destroy()
 
-GraphEditSwitchs.Export('/sal_01/salome/SalomePALHead_15_11_2004/SUPERV_SRC/examples/GraphEditGraphSwitchs_1.py')
+aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_1.py'
+GraphEditSwitchs.Export( aPyFile )
 
 InitLoop.SetName('InitLoopSwitch')
 InitLoopSwitch = InitLoop
@@ -22,7 +23,8 @@ GraphEditSwitchs.Link( OInitLoopSwitchIndex , ISwitcha )
 exec EndOfInitLoopSwitch.ListPorts()
 IEndOfInitLoopSwitchIndex.Link().destroy()
 
-GraphEditSwitchs.Export('/sal_01/salome/SalomePALHead_15_11_2004/SUPERV_SRC/examples/GraphEditGraphSwitchs_2.py')
+aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_2.py'
+GraphEditSwitchs.Export( aPyFile )
 
 exec EndOfSwitch.ListPorts()
 GraphEditSwitchs.Link(OEndOfSwitcha,IEndOfInitLoopSwitchIndex)
@@ -30,7 +32,8 @@ GraphEditSwitchs.Link(OEndOfSwitcha,IEndOfInitLoopSwitchIndex)
 exec EndSwitch.ListPorts()
 GraphEditSwitchs.Link(OEndSwitchGate,IEndOfInitLoopSwitchGate)
 
-GraphEditSwitchs.Export('/sal_01/salome/SalomePALHead_15_11_2004/SUPERV_SRC/examples/GraphEditGraphSwitchs_3.py')
+aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_3.py'
+GraphEditSwitchs.Export( aPyFile )
 
 IsOdd_1.SetName('IsEven')
 IsEven = IsOdd_1
@@ -43,24 +46,27 @@ IIsEvenGate.Link().destroy()
 exec Switch_1.ListPorts()
 GraphEditSwitchs.Link(OSwitch_1Even,IIsEvenGate)
 
-GraphEditSwitchs.Export('/sal_01/salome/SalomePALHead_15_11_2004/SUPERV_SRC/examples/GraphEditGraphSwitchs_4.py')
+aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_4.py'
+GraphEditSwitchs.Export( aPyFile )
 
 GraphEditSwitchs.PrintLinks()
 
 L = GraphEditSwitchs.Link(OSwitch_1Even,IEndSwitchDefault)
 L.destroy()
 
-GraphEditSwitchs.Export('/sal_01/salome/SalomePALHead_15_11_2004/SUPERV_SRC/examples/GraphEditGraphSwitchs_5.py')
+aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_5.py'
+GraphEditSwitchs.Export( aPyFile )
 
 GraphEditSwitchs.Link(OSwitch_1Default,IEndSwitchDefault)
 
 GraphEditSwitchs.Link(OSwitch_1a,IIsEvena)
 
-GraphEditSwitchs.Export('/sal_01/salome/SalomePALHead_15_11_2004/SUPERV_SRC/examples/GraphEditGraphSwitchs_5.py')
+GraphEditSwitchs.Export( aPyFile)
 
 Switch_1.SetName('')
 
 from SuperV import *
 
-GraphEditSwitchs = Graph('/sal_01/salome/SalomePALHead_15_11_2004/SUPERV_SRC/examples/GraphEditGraphSwitchs_3.xml')
+aPyFile = os.getenv('DATA_DIR') + '/Superv/Python/GraphEditGraphSwitchs_3.py'
+GraphEditSwitchs = Graph( aPyFile )