Last active
May 22, 2017 03:41
-
-
Save ur0n2/a1f51e7b6e4fff5583e689a0d2b637c9 to your computer and use it in GitHub Desktop.
windows x86/x64 program files path classification in python
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
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