Stéphane Wirtel <[email protected]> added the comment:

Sure we don't want to execute these kinds of scripts but we could mix with 
GetBinaryTypeW and add a check on the extensions.

for example and simplified protocode

if is_executable(path) or is_script(path):
   raise ...
os.startfile(path)

----------

_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue36021>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to