# Working Directory

Every output file created during the simulation is located under the working directory.

It is recommended not to use hard coded paths in the script but rather use the working directory defined under Preferences. Refer to the following example:
-- Save project
workdir = os.getenv("ALTAIR_PULSE_WORKDIR")
if workdir == nil
then
print("workdir="..workdir)
else
fullname = workdir.."\\MyStep1.cfx"
print("fullname="..fullname)
-- app:SaveAs([[G:\ProcessManager\Usecases\DemoFekoOS\Dev11\WorkingDir\MyStep1.cfx]])
app:SaveAs(fullname)
end
During a simulation, all outputs per run are saved in the working directory under the name of the process.