Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@lldacing

Description

@lldacing
Issue body actions

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
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.