SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Steve S. <el...@gm...> - 2007年10月31日 14:53:36
I installed svn r4071. `svn info <working copy>` and
`svnversion <working copy>` report the correct rev number. But
$ ipython -pylab
In [1]: matplotlib.__version__
Out[1]: '0.90.1'
In [2]: matplotlib.__revision__
Out[2]: '$Revision: 3975 $'
If I'm right, this is because in matplotlib/__init__.py:
__revision__ = '$Revision: 3975 $'
which is the last rev where *this file* changed. Shouldn't
matplotlib.__revision__ report the latest global revision number?
Like that:
import subprocess as su
p = su.Popen('svnversion <path/to/working copy>',
 shell=True, stdin=su.PIPE, stdout=su.PIPE)
revnr = p.stdout.read().strip()
print revnr
-- 
cheers,
steve
I love deadlines. I like the whooshing sound they make as they fly by. --
Douglas Adams
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /