Changeset 3424
- Timestamp:
- Jun 6, 2018 2:38:31 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIctrlGUI.py
r3423 r3424 5173 5173 if GSASIIpath.GetConfigValue('Tutorial_location'): 5174 5174 self.tutorialPath = os.path.abspath(GSASIIpath.GetConfigValue('Tutorial_location')) 5175 elif (sys.platform.lower().startswith('win') and 5176 os.path.exists(os.path.abspath(os.path.expanduser('~/My Documents')))): 5177 self.tutorialPath = os.path.abspath(os.path.expanduser('~/My Documents/G2tutorials')) 5178 elif (sys.platform.lower().startswith('win') and 5179 os.path.exists(os.path.abspath(os.path.expanduser('~/Documents')))): 5180 self.tutorialPath = os.path.abspath(os.path.expanduser('~/Documents/G2tutorials')) 5181 else: 5182 self.tutorialPath = os.path.abspath(os.path.expanduser('~/G2tutorials')) 5175 elif (sys.platform.lower().startswith('win')): 5176 for p in ('Documents','My Documents'): 5177 if os.path.exists(os.path.abspath(os.path.expanduser( 5178 os.path.join('~',p)))): 5179 self.tutorialPath = os.path.abspath(os.path.expanduser( 5180 os.path.join('~',p,'G2tutorials'))) 5181 return 5182 else: 5183 self.tutorialPath = os.path.abspath(os.path.expanduser( 5184 os.path.join('~','G2tutorials'))) 5183 5185 5184 5186 def SelectAndDownload(self,event):
Note: See TracChangeset
for help on using the changeset viewer.