Hi,
I have several web scrapers that run every hour or so and have done fine for years. They all started to throw this error about oh, a week or so ago:
Traceback (most recent call last):
File "/home/greencracker/part-2s/check-part-2s.py", line 52, in <module>
curr_path = os.path.dirname(os.path.abspath(__file__))
NameError: name '__file__' is not defined
I'm just trying grab the current directory ...
I get that I could just use absolute path .... but I'm filing this to someone else via Github etc. It's gg have a life beyond PythonAnywhere
Any ideas?