Mohammad - 2021-08-27

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

C:\DWSIM\Simulation\my_reactor.dwxmz

How can I return only the path e.g. C:\DWSIM\Simulation