(pid = None)
return psinfo['cwd']
Determine the cwd of the current process
Determine the cwd of the current process
Determine the cwd of the current process
def get_pid_cwd(pid = None):
    """Determine the cwd of the current process"""
    psinfo =  psutil.Process(pid).as_dict()
    dbg('psinfo: %s %s' % (psinfo['cwd'],psinfo['pid']))
    # return func
    return psinfo['cwd']
def get_pid_cwd ( pid = None ) : psinfo = psutil . Process ( pid ) . as_dict ( ) dbg ( 'psinfo: %s %s' % ( psinfo [ 'cwd' ] , psinfo [ 'pid' ] ) ) # return func return psinfo [ 'cwd' ]