environment/lib/python2.7/site-packages/IPython/parallel/apps/baseapp.py
def get_pid_from_file(self):
        """Get the pid from the pid file.

        If the  pid file doesn't exist a :exc:`PIDFileError` is raised.
        """
        pid_file = os.path.join(self.profile_dir.pid_dir, self.name + u'.pid')
        if os.path.isfile(pid_file):
            with open(pid_file, 'r') as f:
                s = f.read().strip()
                try:
                    pid = int(s)
                except:
                    raise PIDFileError("invalid pid file: %s (contents: %r)"%(pid_file, s))
                return pid
        else:
            raise PIDFileError('pid file not found: %s' % pid_file)
def get_pid_from_file(self):
        pid_file = os.path.join(self.profile_dir.pid_dir, self.name + u'.pid')
        if os.path.isfile(pid_file):
            with open(pid_file, 'r') as f:
                s = f.read().strip()
                try:
                    pid = int(s)
                except:
                    raise PIDFileError("invalid pid file: %s (contents: %r)"%(pid_file, s))
                return pid
        else:
            raise PIDFileError('pid file not found: %s' % pid_file)
def get_pid_from_file ( self ) : pid_file = os . path . join ( self . profile_dir . pid_dir , self . name + u'.pid' ) if os . path . isfile ( pid_file ) : with open ( pid_file , 'r' ) as f : s = f . read ( ) . strip ( ) try : pid = int ( s ) except : raise PIDFileError ( "invalid pid file: %s (contents: %r)" % ( pid_file , s ) ) return pid else : raise PIDFileError ( 'pid file not found: %s' % pid_file )
Get the pid from the pid file.

        If the  pid file doesn't exist a :exc:`PIDFileError` is raised.
Get the pid from the pid file .