Deltagen python - how to find out where a script is running from?

I'd like to be able to import my custom libraries but for that I need to know the absolute path to be able to load them. I know that (__file__) does not work, and the only (not so elegant) way I found so far it to hard code the path into my script:

sys.path.insert(0, r"C:\\my_scripts\\")
import my_module

I know Blender and Maya have their own special functions to access this information. So I wonder if Deltagen has something like that too. I could not find any information about this in the help files.

Thank you.