PEATSA/Core/Environment.py
def _checkFile(self, pdbFile):
	
		'''Checks if the path pdbFile refers to an existing file.
		FIXME - Make changing of current working directory understandable.
		
		Parameters:
			pdbFile - A path to a file - Can be absolute or not.
			
		Returns:
			The absolute path to the file.
			
		Exceptions:
			Raises an exception if the file does not exist or if its not a file'''
			
		#Make the filename absolute
		if not os.path.isabs(pdbFile):
			pdbFile = os.path.abspath(pdbFile)
		
		#Check the specified file exists.
		if not os.path.exists(pdbFile):
			raise Exceptions.WorkingDirectoryError, 'File %s does not exist' % pdbFile
			
		#Check its a file
		if not os.path.isfile(pdbFile):
			raise Exceptions.WorkingDirectoryError, 'Object at %s is not a file' % pdbFile	
		
		return pdbFile
Checks if the path pdbFile refers to an existing file.
		FIXME - Make changing of current working directory understandable.
		
		Parameters:
			pdbFile - A path to a file - Can be absolute or not.
			
		Returns:
			The absolute path to the file.
			
		Exceptions:
			Raises an exception if the file does not exist or if its not a file
Checks if the path pdbFile refers to an existing file.
FIXME - Make changing of current working directory understandable.

A path to a file - Can be absolute or not.

The absolute path to the file.

Raises an exception if the file does not exist or if its not a file
Checks if the path pdbFile refers to an existing file . FIXME - Make changing of current working directory understandable . A path to a file - Can be absolute or not . The absolute path to the file . Raises an exception if the file does not exist or if its not a file
def _checkFile(self, pdbFile):
		if not os.path.isabs(pdbFile):
			pdbFile = os.path.abspath(pdbFile)
		if not os.path.exists(pdbFile):
			raise Exceptions.WorkingDirectoryError, 'File %s does not exist' % pdbFile
		if not os.path.isfile(pdbFile):
			raise Exceptions.WorkingDirectoryError, 'Object at %s is not a file' % pdbFile	
		return pdbFile
def _checkFile ( self , pdbFile ) : if not os . path . isabs ( pdbFile ) : pdbFile = os . path . abspath ( pdbFile ) if not os . path . exists ( pdbFile ) : raise Exceptions . WorkingDirectoryError , 'File %s does not exist' % pdbFile if not os . path . isfile ( pdbFile ) : raise Exceptions . WorkingDirectoryError , 'Object at %s is not a file' % pdbFile return pdbFile
Checks if the path pdbFile refers to an existing file.
Checks if the path pdbFile refers to an existing file .
'''Checks if the path pdbFile refers to an existing file.
		FIXME - Make changing of current working directory understandable.
		
		Parameters:
			pdbFile - A path to a file - Can be absolute or not.
			
		Returns:
			The absolute path to the file.
			
		Exceptions:
			Raises an exception if the file does not exist or if its not a file''' #Make the filename absolute #Check the specified file exists. #Check its a file
self
pdbFile