def check_paths():
 if (not hasattr(settings, 'PEP_REPO_PATH')):
  raise ImproperlyConfigured('No PEP_REPO_PATH in settings')
 if (not os.path.exists(settings.PEP_REPO_PATH)):
  raise ImproperlyConfigured('PEP_REPO_PATH in settings does not exist')

def check_paths ( ) : if ( not hasattr ( settings , 'PEP_REPO_PATH' ) ) : raise ImproperlyConfigured ( 'No PEP_REPO_PATH in settings' ) if ( not os . path . exists ( settings . PEP_REPO_PATH ) ) : raise ImproperlyConfigured ( 'PEP_REPO_PATH in settings does not exist' )
method to check all paths have correct substitutions .