Home | Trees | Indices | Help |
---|
|
Functions for getting system/language/user dependent paths on windows.
All path names returned by the functions of this module are unicode strings.
From http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473846/
|
|||
| _substenv(m) | ||
|
expandvars(s) Expand environment variables of form %var%. |
||
|
_get_reg_value(key,
subkey,
name) Return registry value specified by key, subkey, and name. |
||
|
_get_reg_user_value(key,
name) Return a windows registry value from the CURRENT_USER branch. |
||
|
_get_reg_machine_value(key,
name) Return a windows registry value from the LOCAL_MACHINE branch. |
||
|
get_appdata() Return path of directory where apps should store user specific data. |
||
|
get_common_shellfolders() Return mapping of shell folder names (all users) to paths. |
||
|
get_homedir() Return path to user home directory, i.e. |
||
|
get_sharedconf(prog,
*args) Return path to shared configuration data for 'prog' from 'vendor'. |
||
|
get_shellfolders(branch=HKCU,
key=SHELL_FOLDERS) Return mapping of shell folder names (current user) to paths. |
||
|
get_userconf(vendor,
prog,
*args) Return path to user configuration data for 'prog' from 'vendor'. |
||
|
get_windir() Convenience function to get path to windows installation directory. |
|
|||
|
__module__ = "winpaths"
|
||
|
__author__ = "Christopher Arndt"
|
||
|
__version__ = "0.1"
|
||
|
__revision__ = "$Rev: 122 $"
|
||
|
__date__ = "$Date$"
|
||
|
__copyright__ = "Python license"
|
||
|
SHELL_FOLDERS = r'Software\Microsoft\Windows\CurrentVersion\Explorer...
|
||
|
USER_SHELL_FOLDERS = r'Software\Microsoft\Windows\CurrentVersion\Explorer...
|
||
|
HKCU = _winreg.HKEY_CURRENT_USER
|
||
|
HKLM = _winreg.HKEY_LOCAL_MACHINE
|
||
|
_env_rx = None helper for pickle |
|
|
Expand environment variables of form %var%. Unknown variables are left unchanged. |
Return registry value specified by key, subkey, and name. Environment variables in values of type REG_EXPAND_SZ are expanded if possible. |
|
|
|
|
|
Return path to shared configuration data for 'prog' from 'vendor'. Additional arguments are appended via os.path.join(). See also: get_user_conf() |
|
Return path to user configuration data for 'prog' from 'vendor'. Additional arguments are appended via os.path.join(), e.g. use like this: optionsfn = get_userconf("ACME Soft", "Exploder", "Options.xml") |
|
|
__module__None
|
__author__None
|
__version__None
|
__revision__None
|
__date__None
|
__copyright__None
|
SHELL_FOLDERSNone
|
USER_SHELL_FOLDERSNone
|
HKCUNone
|
HKLMNone
|
_env_rxhelper for pickle
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Sun Feb 4 17:00:18 2007 | http://epydoc.sourceforge.net |