You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ erg test.er
Traceback (most recent call last):
File "<string>", line 1, in<module>
File "test.er", line -1, in<module>
NameError: name '__file__' is not defined. Did you mean: '__name__'?
Erg does not create files (on Unix) when executing Python bytecode. That is, __file__ is not set. Even if the compiler creates the file, it will be created in the temporary directory, so it won't work as intended anyway.
The compiler must embed the contents of this variable at compile time.
From: #508
Erg does not create files (on Unix) when executing Python bytecode. That is,
__file__
is not set. Even if the compiler creates the file, it will be created in the temporary directory, so it won't work as intended anyway.The compiler must embed the contents of this variable at compile time.
Originally posted by @toddlerer in #508 (comment)
The text was updated successfully, but these errors were encountered: