source: products/CMFPlone_membership_hotfix/tags/1.0.1/__init__.py @ 1656

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: 452 bytes
Line 
1import os
2from Globals import package_home
3
4try:
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
16except:
17    pass
18
Note: See TracBrowser for help on using the repository browser.