def getAlterationFile(fileName):
 settingsAlterationsDirectory = archive.getSettingsPath('alterations')
 archive.makeDirectory(settingsAlterationsDirectory)
 fileInSettingsAlterationsDirectory = getFileInGivenDirectory(settingsAlterationsDirectory, fileName)
 if (fileInSettingsAlterationsDirectory != ''):
  return fileInSettingsAlterationsDirectory
 alterationsDirectory = archive.getSkeinforgePath('alterations')
 return getFileInGivenDirectory(alterationsDirectory, fileName)

def getAlterationFile ( fileName ) : settingsAlterationsDirectory = archive . getSettingsPath ( 'alterations' ) archive . makeDirectory ( settingsAlterationsDirectory ) fileInSettingsAlterationsDirectory = getFileInGivenDirectory ( settingsAlterationsDirectory , fileName ) if ( fileInSettingsAlterationsDirectory != '' ) : return fileInSettingsAlterationsDirectory alterationsDirectory = archive . getSkeinforgePath ( 'alterations' ) return getFileInGivenDirectory ( alterationsDirectory , fileName )
get the file from the filename or the lowercase filename in the alterations directories .