Created
February 8, 2011 11:20
-
-
Save jensens/816281 to your computer and use it in GitHub Desktop.
parses zopes instance file and returns versions used (for use in buildout)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# versionfinder | |
import re | |
regexp = re.compile('.*\/(.*)-(.*)-py') | |
with open('instance', 'r') as ins: | |
for line in ins.readlines(): | |
res = regexp.match(line) | |
if res is None: | |
continue | |
print "%s = %s" % res.groups() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment