Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When python>=3.11, error name __file__ is not defined #205

Open
lldacing opened this issue Nov 12, 2024 · 0 comments
Open

When python>=3.11, error name __file__ is not defined #205

lldacing opened this issue Nov 12, 2024 · 0 comments

Comments

@lldacing
Copy link

Describe the bug*

When python>=3.11, variable __file__ is not recognized

To Reproduce

test code:

import os


if __name__ == '__main__':
    os.path.realpath(__file__)

Expected behavior

Run through

Screenshots

image

Desktop or remote (please complete the following information):**

  • OS: Windows 11
  • OS version: 23H2
  • M1 chip: no
  • Reloadium package version: none
  • PyCharm plugin version: 1.5.1
  • Editor: PyCharm 2024.2.4
  • Python Version: >=3.11
  • Python Architecture: 64bit
  • Run mode: Run or Debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant