reloadium
reloadium copied to clipboard
When python>=3.11, error name __file__ is not defined
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
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
Same problem here with python 3.11. Windows 10