Difference between __file__ in PyPy and CPython
I was trying to make my project work with PyPy(i used CPython 3.10.4 before). And i made changes, so code will run(like changing annotations). But i find a bug, i used os.path.dirname(__file__)
for finding out directory of the script. But i find out that __file__
in PyPy doesnt give me full path, only mane of the file or may be even just file from an argv(because of space i found). Example of PyPy and CPython output.