environment/lib/python2.7/site-packages/psutil/__init__.py
def username(self):
        """The name of the user that owns the process.
        On UNIX this is calculated by using *real* process uid.
        """
        if os.name == 'posix':
            if pwd is None:
                # might happen if python was installed from sources
                raise ImportError("requires pwd module shipped with standard python")
            return pwd.getpwuid(self.uids.real).pw_name
        else:
            return self._platform_impl.get_process_username()
def username(self):
        """The name of the user that owns the process.
        On UNIX this is calculated by using *real* process uid.
        """
        if os.name == 'posix':
            if pwd is None:
                # might happen if python was installed from sources
                raise ImportError("requires pwd module shipped with standard python")
            return pwd.getpwuid(self.uids.real).pw_name
        else:
            return self._platform_impl.get_process_username()
def username ( self ) : if os . name == 'posix' : if pwd is None : # might happen if python was installed from sources raise ImportError ( "requires pwd module shipped with standard python" ) return pwd . getpwuid ( self . uids . real ) . pw_name else : return self . _platform_impl . get_process_username ( )
The name of the user that owns the process.
        On UNIX this is calculated by using *real* process uid.
The name of the user that owns the process . On UNIX this is calculated by using * real * process uid .