Changeset 2734 for trunk

Show
Ignore:
Timestamp:
08/27/2008 03:03:07 PM (4 months ago)
Author:
guyer
Message:

Forgot one

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/fipy/__init__.py

    r2050 r2734  
    1 import os 
    2 execfile(os.path.join(__path__[0], '__version__.py')) 
     1from pkg_resources import Requirement, resource_string, get_distribution 
    32 
    4 f = file(os.path.join(os.path.split(__path__[0])[0], 'README.txt')) 
    5 __doc__ = f.read() 
    6 f.close() 
    7 del f 
     3FiPy = Requirement.parse("FiPy") 
     4 
     5__version__ = get_distribution(FiPy).version 
     6__doc__ = resource_string(FiPy,"README.txt") 
    87__docformat__ = 'restructuredtext' 
    98