Home | Trees | Indices | Help |
|
---|
|
object --+ | Enviro
A Perforce Enviro object.
Environment keys and values use unicode
strings if the
platform supports them (currently only NT), otherwise they use
str
strings.
Arguments will be coerced to the correct type using the default codec.
The constructor takes an optional 'service'
parameter
that allows you to specify the service-specific registry settings to use.
Set this parameter to a str
or unicode
to
get/set the settings for that service. Set this parameter to
None
to get/set the settings for the machine.
| e = Enviro('my-service') # Manipulate settings for my-service | e = Enviro(None) # Manipulate settings for machine | e = Enviro() # Maniuplate settings for current user
Note:
The 'service'
parameter is only supported on
NT.
Nested Classes | |
ItemType Enumeration of perforce.api.Enviro item types. |
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
|
Search for a P4CONFIG file in the specified directory and, if found, update the Enviro with the values found there. Use getConfig afterwards to query the path of the P4CONFIG file loaded.
See Also: getConfig |
Note: Platforms that support Unicode environments will return unicode strings. See Also: getType |
See Also: config |
|
|
Sets the value of a variable in the Windows registry. Which registry location will be dependent on how the Enviro was constructed (machine-wide, user-specific or service-specific).
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Sun Aug 05 12:30:13 2007 | http://epydoc.sourceforge.net |