In Python Script I can access the file path as below
home = Flowsheet.FilePath
This actually returns the full path+file name.
For example if my simulation file called my_reactor.dwxmz and stored in C:\DWSIM\Simulation, then the home variable from above statement will be
my_reactor.dwxmz
C:\DWSIM\Simulation
C:\DWSIM\Simulation\my_reactor.dwxmz
How can I return only the path e.g. C:\DWSIM\Simulation
In Python Script I can access the file path as below
This actually returns the full path+file name.
For example if my simulation file called
my_reactor.dwxmz
and stored inC:\DWSIM\Simulation
, then the home variable from above statement will beHow can I return only the path e.g.
C:\DWSIM\Simulation