Skip to content

Instantly share code, notes, and snippets.

@maphew
Created August 28, 2019 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maphew/dba5a8ea30b0fa5d8f07c2a6675b55d7 to your computer and use it in GitHub Desktop.
Save maphew/dba5a8ea30b0fa5d8f07c2a6675b55d7 to your computer and use it in GitHub Desktop.
Windows python snippets
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