When i try:PROJECT_ROOT = os.path.dirname(__file__)
i get error like this:Traceback (most recent call last):
File "< stdin>", line 1, in <module>
NameError: name '__file__' is not defined
Does someone know how to fix this?
Run that line of code via an actual module instead of in the Python REPL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With