Created
August 28, 2019 19:54
-
-
Save maphew/dba5a8ea30b0fa5d8f07c2a6675b55d7 to your computer and use it in GitHub Desktop.
Windows python snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_exe_types(): | |
'''Return list of valid executable file extensions [.com, .exe, ...]''' | |
exetypes = [ext.lower() for ext in os.environ['PATHEXT'].split(os.pathsep)] | |
return exetypes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment