Show
Ignore:
Timestamp:
02/14/08 15:23:36 (2 years ago)
Author:
JensDiemer
Message:

work-a-round using /setup.py in the lite version without django in the sys.path

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/__init__.py

    r1405 r1410  
    1717""" 
    1818 
    19 from django.utils.version import get_svn_revision 
     19try: 
     20    from django.utils.version import get_svn_revision 
    2021 
    21 svn_revision = get_svn_revision("PyLucid") 
    22 if svn_revision == u'SVN-unknown': 
    23     # No SVN checkout, a release? 
     22    svn_revision = get_svn_revision("PyLucid") 
     23    if svn_revision == u'SVN-unknown': 
     24        # No SVN checkout, a release? 
     25        svn_revision = "" 
     26    else: 
     27        # Add a space between the normal version number and the SVN revision number. 
     28        svn_revision = " " + svn_revision 
     29except ImportError: 
     30    # using /setup.py in the lite version without django in the sys.path 
    2431    svn_revision = "" 
    25 else: 
    26     # Add a space between the normal version number and the SVN revision number. 
    27     svn_revision = " " + svn_revision 
    2832 
    2933# PyLucid Version String