def write_version_py(filename=None):
 doc = '"""\nThis is a VERSION file and should NOT be manually altered\n"""'
 doc += ("\nversion = '%s'" % VERSION)
 if (not filename):
  filename = os.path.join(os.path.dirname(__file__), 'quantecon', 'version.py')
 fl = open(filename, 'w')
 try:
  fl.write(doc)
 finally:
  fl.close()

def write_version_py ( filename = None ) : doc = '"""\nThis is a VERSION file and should NOT be manually altered\n"""' doc += ( "\nversion = '%s'" % VERSION ) if ( not filename ) : filename = os . path . join ( os . path . dirname ( __file__ ) , 'quantecon' , 'version.py' ) fl = open ( filename , 'w' ) try : fl . write ( doc ) finally : fl . close ( )
this constructs a version file for the project .