Home | Trees | Indices | Help |
---|
|
1 # ICE Revision: $Id: Hardcoded.py 12760 2013-01-03 23:10:16Z bgschaid $ 2 """Hardcoded values""" 3 4 from os import path,makedirs,environ 5 from PyFoam.ThirdParty.six import PY3 6 7 _pyFoamDirName="pyFoam" 8 9 _pyFoamConfigName="pyfoamrc" 10 1416 """@return: The name of the global configuration File""" 17 return path.join(globalDirectory(),_pyFoamConfigName)1820 """@return: The name of the global configuration directory where .cfg-files can be placed""" 21 return globalConfigFile()+".d"22 2628 """@return: The name of the user configuration File""" 29 return path.join(userDirectory(),_pyFoamConfigName)3032 """@return: The name of the user configuration directory where .cfg-files can be placed""" 33 return userConfigFile()+".d"3436 """@return: name of the current user""" 37 user="" 38 if "USER" in environ: 39 user=environ["USER"] 40 return user41 50 63 64 # Should work with Python3 and Python2 65
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Mar 14 15:45:00 2013 | http://epydoc.sourceforge.net |