Package diffpy :: Package srrietveld :: Module version
[frames] | no frames]

Source Code for Module diffpy.srrietveld.version

 1  ############################################################################## 
 2  # 
 3  # diffpy.srrietveld by DANSE Diffraction group 
 4  #                   Simon J. L. Billinge 
 5  #                   (c) 2008 Trustees of the Columbia University 
 6  #                   in the City of New York.  All rights reserved. 
 7  # 
 8  # File coded by:    Pavol Juhas 
 9  # 
10  # See AUTHORS.txt for a list of people who contributed. 
11  # See LICENSE.txt for license information. 
12  # 
13  ############################################################################## 
14   
15  """Definition of __version__ and __date__ for diffpy.srrietveld. 
16  """ 
17   
18  __id__ = "$Id: version.py 5658 2010-07-09 20:05:34Z juhas $" 
19   
20  # obtain version information 
21  from pkg_resources import get_distribution 
22  __version__ = get_distribution('diffpy.srrietveld').version 
23   
24  # we assume that tag_date was used and __version__ ends in YYYYMMDD 
25  __date__ = __version__[-8:-4] + '-' + \ 
26             __version__[-4:-2] + '-' + __version__[-2:] 
27   
28  # End of file 
29