Advertisement
Peaser

Startpath for python

May 31st, 2014
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. import os,platform
  2. if platform.system() == "Windows":
  3.     if platform.release().lower() == "xp":
  4.         startpath = os.environ['ALLUSERSPROFILE']+'Start Menu\Startup'
  5.     if platform.release() == "7" or "8":
  6.         startpath = os.path.expanduser('~')+'\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup'
  7.     else:
  8.         pass
  9. else:
  10.     pass
  11. print startpath
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement