def getProcessCwd(pid):
try:<EOL><INDENT>cwd = os.readlink('<STR_LIT>' %(int(pid), ))<EOL>return cwd<EOL><DEDENT>except:<EOL><INDENT>return None<EOL><DEDENT>
getProcessCwd - Gets the cwd (current working directory) of a given pid

@param pid <int> - Process ID

@return <str/None> - None if process not found or can't be determined. Otherwise, a string of the CWD