Changeset 1676 for trunk/GSASIIpath.py
- Timestamp:
- Feb 27, 2015 9:46:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIpath.py
r1657 r1676 309 309 sys.exit() 310 310 311 def svnSwitchDir(rpath,URL ):311 def svnSwitchDir(rpath,URL,loadpath=None): 312 312 '''This performs a switch command to move files between subversion trees. 313 313 … … 316 316 317 317 :param str rpath: path to locate files, relative to the GSAS-II 318 installation path ( path2GSAS2)318 installation path (defaults to path2GSAS2) 319 319 :param str URL: the repository URL 320 320 ''' … … 322 322 svn = whichsvn() 323 323 if not svn: return 324 fpath = os.path.join(path2GSAS2,rpath) 324 if loadpath: 325 fpath = os.path.join(loadpath,rpath) 326 else: 327 fpath = os.path.join(path2GSAS2,rpath) 325 328 cmd = [svn,'switch','--ignore-ancestry',URL,fpath, 326 329 '--non-interactive',
Note: See TracChangeset
for help on using the changeset viewer.