Add docstring for update_path() method.

testing/mmn/mktime_takes_localtime_not_gmtime
Isis Lovecruft 2013-05-21 12:28:14 +00:00
parent f67270609f
commit a8023e7eab
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 6 additions and 1 deletions

View File

@ -267,7 +267,12 @@ class GPGBase(object):
return new_path
@staticmethod
def update_path(env_copy, path_value):
def update_path(environment, path):
"""Add paths to the string at os.environ['PATH'].
:param str environment: The environment mapping to update.
:param list path: A list of strings to update the PATH with.
"""
log.debug("Updating system path...")
os.environ = env_copy
os.environ.update({'PATH': path_value})