Say I have a script.py
that imports module.py
,
In the module, __file__
returns path\module.py
Is there a variable or something I can use in the module that returns path\script.py
or script.py
?
at the moment I'm doing module.config(__file__)
in script.py instead.