Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
windows x86/x64 program files path classification in python
import os
prgm_path = ""
if os.environ.get("PROGRAMFILES(X86)") is None: #this case is 32bit
prgm_path = os.environ.get("PROGRAMFILES")
else:
prgm_path = os.environ.get("PROGRAMFILES(X86)")
#print prgm_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.