[issue40525] zipapps execute symlinks as if they are code

2020-05-07 Thread Filipe Laíns
Filipe Laíns added the comment: I tracked this down to zipimporter. I have one untested patch, when I run python from my development tree for some reason the zipimport definition at Lib/zipimport.py is not used. I assume something weird is going on because of the frozen circular imports. I

[issue40525] zipapps execute symlinks as if they are code

2020-05-05 Thread Anthony Sottile
New submission from Anthony Sottile : ```console $ ln -s 'import os; os.system("echo hi")' __main__.py $ ls -al total 8 drwxr-xr-x 2 asottile asottile 4096 May 5 15:55 . drwxr-xr-x 3 asottile asottile 4096 May 5 14:50 .. lrwxrwxrwx 1 asottile asottile 31 May 5 15:55 __main__.py -> 'import