reloadium icon indicating copy to clipboard operation
reloadium copied to clipboard

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

Open lldacing opened this issue 1 year ago • 1 comments

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

lldacing avatar Nov 12 '24 03:11 lldacing

Same problem here with python 3.11. Windows 10

tansautn avatar Apr 15 '25 05:04 tansautn