From d766fcbbd800dc808adb451149cf5419d4239dab 2006-11-29 07:59:20 From: vivainio Date: 2006-11-29 07:59:20 Subject: [PATCH] tools/update_revnum.py now gives path (req for some svn version) --- diff --git a/tools/update_revnum.py b/tools/update_revnum.py index eafc1b9..fd37a90 100755 --- a/tools/update_revnum.py +++ b/tools/update_revnum.py @@ -3,11 +3,11 @@ import os import re -rev = os.popen('svnversion').read().strip() +rev = os.popen('svnversion ..').read().strip() print "current rev is",rev assert ':' not in rev rfile = open('../IPython/Release.py').read() newcont = re.sub(r'revision\s*=.*', "revision = '%s'" % rev, rfile) -open('../IPython/Release.py','w').write(newcont) \ No newline at end of file +open('../IPython/Release.py','w').write(newcont)