source: enpraxis.educommons/branches/educommons-imsintegration/enpraxis/educommons/docs/src/makedocs.py @ 146

Revision 146, 350 bytes checked in by jon, 4 years ago (diff)

Adding branch for ims integration

Line 
1# Quick and dirty script to replace all instances of $$version$$ with the version number.
2
3import sys
4import string
5
6f = open('../../version.txt', 'r')
7ver = f.readline()[:-1]
8f.close()
9
10f = open(sys.argv[1], 'r')
11ft = f.read()
12f.close()
13
14nft = string.replace(ft, '$$version$$', ver)
15
16f = open(sys.argv[1], 'w')
17f.write(nft)
18f.close()
19
20print 'Done.'
Note: See TracBrowser for help on using the repository browser.