Skip to content

name '__file__' is not defined #123

@caoyinchuan

Description

@caoyinchuan

I compile the following python source file to pye file

print(__file__)

but the pye file can not run
error message:

Traceback (most recent call last):
  File "enc/test1.py", line 1, in <module>
NameError: name '__file__' is not defined. Did you mean: '__name__'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions