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