comparison __init__.py @ 303:410a6ef674ed

added comment to source-version function
author James Bergstra <bergstrj@iro.umontreal.ca>
date Tue, 10 Jun 2008 11:07:20 -0400
parents 675d92789941
children e2e5157ff044
comparison
equal deleted inserted replaced
302:675d92789941 303:410a6ef674ed
23 23
24 @note: This implementation is assumes that the import directory is under 24 @note: This implementation is assumes that the import directory is under
25 version control by mercurial. 25 version control by mercurial.
26 26
27 """ 27 """
28 #
29 # NOTE
30 #
31 # If you find bugs in this function, please update the __src_version__
32 # function in pylearn, and email either theano-dev or pylearn-dev so that
33 # people can update their experiment dirs (the output of this function is
34 # meant to be hard-coded in external files).
35 #
36
28 #print 'name:', __name__ 37 #print 'name:', __name__
29 location = _imp.find_module(__name__)[1] 38 location = _imp.find_module(__name__)[1]
30 #print 'location:', location 39 #print 'location:', location
31 40
32 status = _subprocess.Popen(('hg','st'),cwd=location,stdout=_subprocess.PIPE).communicate()[0] 41 status = _subprocess.Popen(('hg','st'),cwd=location,stdout=_subprocess.PIPE).communicate()[0]