Last change
on this file since 3305 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
452 bytes
|
Line | |
---|
1 | import os |
---|
2 | from Globals import package_home |
---|
3 | |
---|
4 | try: |
---|
5 | from Products.CMFPlone import cmfplone_globals |
---|
6 | path = os.path.join(package_home(cmfplone_globals)) |
---|
7 | try: |
---|
8 | files=os.listdir(path) |
---|
9 | for f in files: |
---|
10 | if f.lower()=='version.txt': |
---|
11 | version = open(os.path.join(path,f)).read().strip() |
---|
12 | if version.startswith('2.0.'): |
---|
13 | import patch |
---|
14 | except: |
---|
15 | pass |
---|
16 | except: |
---|
17 | pass |
---|
18 | |
---|
Note: See
TracBrowser
for help on using the repository browser.