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
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)
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
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 )