Changeset 5069
- Timestamp:
- Nov 6, 2021 12:32:37 AM (23 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIpath.py
r5049 r5069 253 253 if GetConfigValue('debug') and host: 254 254 print('DBG_Using proxy host {} port {}'.format(host,port)) 255 if GetConfigValue('svn_exec'): 256 exe_file = GetConfigValue('svn_exec') 257 print('Using ',exe_file) 258 if is_exe(exe_file): 259 try: 260 p = subprocess.Popen([exe_file,'help'],stdout=subprocess.PIPE) 261 res = p.stdout.read() 262 if not res: return 263 p.communicate() 264 svnLocCache = os.path.abspath(exe_file) 265 return svnLocCache 266 except: 267 pass 255 268 # add likely places to find subversion when installed with GSAS-II 256 269 pathlist = os.environ["PATH"].split(os.pathsep) … … 1157 1170 newpath = os.path.join(path2GSAS2,'exports') 1158 1171 if newpath not in sys.path: sys.path.append(newpath) 1159 1172 LoadConfig(printInfo) 1173 1174 def LoadConfig(printInfo=True): 1160 1175 # setup read of config.py, if present 1161 1176 global configDict … … 1301 1316 '''What follows is called to update (or downdate) GSAS-II in a separate process. 1302 1317 ''' 1318 LoadConfig() 1303 1319 import time 1304 1320 time.sleep(1) # delay to give the main process a chance to exit -
trunk/config_example.py
r5047 r5069 267 267 This option is under development and is not fully tested. 268 268 ''' 269 270 svn_exec = None 271 '''Defines the full path to a subversion executable. 272 If None (the default), GSAS-II will search for a svn or svn.exe file 273 in the current path or in the location where the current Python is located. 274 '''
Note: See TracChangeset
for help on using the changeset viewer.