I want to automate setting working directory where used python script exist.
import os
workingDirectory = os.path.dirname(__file__)
os.chdir(workingDirectory)
When I run that code in ABAQUS, it doesn't work with error, "__file__ is not defined."
How can I solve it??