Commits

Jason Pellerin  committed 034f3b5

Better svnroot finding

  • Participants
  • Parent commits 40afe6b
  • Tags 0.10.0a2-release

Comments (0)

Files changed (1)

File scripts/mkrelease.py

 current = os.getcwd()
 
 here = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
-svnroot = os.path.abspath(os.path.dirname(here))
+parts = here.split('/')
+svn = parts.index('svn')
+svnroot = os.path.join('/', *parts[:svn+1])
 branchroot = os.path.join(svnroot, 'branches')
 tagroot = os.path.join(svnroot, 'tags')
 svntrunk = os.path.join(svnroot, 'trunk')