It always helps to return the thing you're called for

This commit is contained in:
Chris Jones 2009-08-18 12:59:06 +01:00
parent 1cb1f166cf
commit 65767693df
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ def get_default_cwd():
cwd = os.getcwd() cwd = os.getcwd()
if not os.path.exists(cwd) or not os.path.isdir(cwd): if not os.path.exists(cwd) or not os.path.isdir(cwd):
cwd = pwd.getpwuid(os.getuid())[5] cwd = pwd.getpwuid(os.getuid())[5]
return(cwd)
def get_pid_cwd(): def get_pid_cwd():
"""Determine an appropriate cwd function for the OS we are running on""" """Determine an appropriate cwd function for the OS we are running on"""