<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module fabmetheus_utilities.archive</title> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> <tr bgcolor="#7799ee"> <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="fabmetheus_utilities.html"><font color="#ffffff">fabmetheus_utilities</font></a>.archive</strong></big></big> ($Date: 2008/02/05 $)</font></td ><td align=right valign=bottom ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/fabmetheus_utilities/archive.py">/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/fabmetheus_utilities/archive.py</a></font></td></tr></table> <p><tt>Boolean geometry utilities.</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#aa55cc"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br> </td><td width="25%" valign=top><a href="os.html">os</a><br> </td><td width="25%" valign=top><a href="sys.html">sys</a><br> </td><td width="25%" valign=top><a href="traceback.html">traceback</a><br> </td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#eeaa77"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> <td width="100%"><dl><dt><a name="-addToNamePathDictionary"><strong>addToNamePathDictionary</strong></a>(directoryPath, namePathDictionary)</dt><dd><tt>Add to the name path dictionary.</tt></dd></dl> <dl><dt><a name="-getAbsoluteFolderPath"><strong>getAbsoluteFolderPath</strong></a>(filePath, folderName<font color="#909090">=''</font>)</dt><dd><tt>Get the absolute folder path.</tt></dd></dl> <dl><dt><a name="-getAbsoluteFrozenFolderPath"><strong>getAbsoluteFrozenFolderPath</strong></a>(filePath, folderName<font color="#909090">=''</font>)</dt><dd><tt>Get the absolute frozen folder path.</tt></dd></dl> <dl><dt><a name="-getAnalyzePluginsDirectoryPath"><strong>getAnalyzePluginsDirectoryPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the analyze plugins directory path.</tt></dd></dl> <dl><dt><a name="-getCraftPluginsDirectoryPath"><strong>getCraftPluginsDirectoryPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the craft plugins directory path.</tt></dd></dl> <dl><dt><a name="-getDocumentationPath"><strong>getDocumentationPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the documentation file path.</tt></dd></dl> <dl><dt><a name="-getElementsPath"><strong>getElementsPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the evaluate_elements directory path.</tt></dd></dl> <dl><dt><a name="-getEndsWithList"><strong>getEndsWithList</strong></a>(word, wordEndings)</dt><dd><tt>Determine if the word ends with a list.</tt></dd></dl> <dl><dt><a name="-getFabmetheusPath"><strong>getFabmetheusPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the fabmetheus directory path.</tt></dd></dl> <dl><dt><a name="-getFabmetheusToolsPath"><strong>getFabmetheusToolsPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the fabmetheus tools directory path.</tt></dd></dl> <dl><dt><a name="-getFabmetheusUtilitiesPath"><strong>getFabmetheusUtilitiesPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the fabmetheus utilities directory path.</tt></dd></dl> <dl><dt><a name="-getFileNamesByFilePaths"><strong>getFileNamesByFilePaths</strong></a>(pluginFilePaths)</dt><dd><tt>Get the file names of the plugins by the file paths.</tt></dd></dl> <dl><dt><a name="-getFilePathWithUnderscoredBasename"><strong>getFilePathWithUnderscoredBasename</strong></a>(fileName, suffix)</dt><dd><tt>Get the file path with all spaces in the basename replaced with underscores.</tt></dd></dl> <dl><dt><a name="-getFilePaths"><strong>getFilePaths</strong></a>(fileInDirectory<font color="#909090">=''</font>)</dt><dd><tt>Get the file paths in the directory of the file in directory.</tt></dd></dl> <dl><dt><a name="-getFilePathsByDirectory"><strong>getFilePathsByDirectory</strong></a>(directoryName)</dt><dd><tt>Get the file paths in the directory of the file in directory.</tt></dd></dl> <dl><dt><a name="-getFilePathsRecursively"><strong>getFilePathsRecursively</strong></a>(fileInDirectory<font color="#909090">=''</font>)</dt><dd><tt>Get the file paths in the directory of the file in directory.</tt></dd></dl> <dl><dt><a name="-getFileText"><strong>getFileText</strong></a>(fileName, printWarning<font color="#909090">=True</font>, readMode<font color="#909090">='r'</font>)</dt><dd><tt>Get the entire text of a file.</tt></dd></dl> <dl><dt><a name="-getFileTextInFileDirectory"><strong>getFileTextInFileDirectory</strong></a>(fileInDirectory, fileName, readMode<font color="#909090">='r'</font>)</dt><dd><tt>Get the entire text of a file in the directory of the file in directory.</tt></dd></dl> <dl><dt><a name="-getFilesWithFileTypeWithoutWords"><strong>getFilesWithFileTypeWithoutWords</strong></a>(fileType, words<font color="#909090">=[]</font>, fileInDirectory<font color="#909090">=''</font>)</dt><dd><tt>Get files which have a given file type, but with do not contain a word in a list.</tt></dd></dl> <dl><dt><a name="-getFilesWithFileTypesWithoutWords"><strong>getFilesWithFileTypesWithoutWords</strong></a>(fileTypes, words<font color="#909090">=[]</font>, fileInDirectory<font color="#909090">=''</font>)</dt><dd><tt>Get files which have a given file type, but with do not contain a word in a list.</tt></dd></dl> <dl><dt><a name="-getFilesWithFileTypesWithoutWordsRecursively"><strong>getFilesWithFileTypesWithoutWordsRecursively</strong></a>(fileTypes, words<font color="#909090">=[]</font>, fileInDirectory<font color="#909090">=''</font>)</dt><dd><tt>Get files recursively which have a given file type, but with do not contain a word in a list.</tt></dd></dl> <dl><dt><a name="-getFundamentalsPath"><strong>getFundamentalsPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the evaluate_fundamentals directory path.</tt></dd></dl> <dl><dt><a name="-getGeometryDictionary"><strong>getGeometryDictionary</strong></a>(folderName)</dt><dd><tt>Get to the geometry name path dictionary.</tt></dd></dl> <dl><dt><a name="-getGeometryPath"><strong>getGeometryPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the geometry directory path.</tt></dd></dl> <dl><dt><a name="-getGeometryToolsPath"><strong>getGeometryToolsPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the geometry tools directory path.</tt></dd></dl> <dl><dt><a name="-getGeometryUtilitiesPath"><strong>getGeometryUtilitiesPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the geometry_utilities directory path.</tt></dd></dl> <dl><dt><a name="-getInterpretPluginsPath"><strong>getInterpretPluginsPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the interpret plugins directory path.</tt></dd></dl> <dl><dt><a name="-getJoinedPath"><strong>getJoinedPath</strong></a>(path, subName<font color="#909090">=''</font>)</dt><dd><tt>Get the joined file path.</tt></dd></dl> <dl><dt><a name="-getModuleWithDirectoryPath"><strong>getModuleWithDirectoryPath</strong></a>(directoryPath, fileName)</dt><dd><tt>Get the module from the fileName and folder name.</tt></dd></dl> <dl><dt><a name="-getModuleWithPath"><strong>getModuleWithPath</strong></a>(path)</dt><dd><tt>Get the module from the path.</tt></dd></dl> <dl><dt><a name="-getPluginFileNamesFromDirectoryPath"><strong>getPluginFileNamesFromDirectoryPath</strong></a>(directoryPath)</dt><dd><tt>Get the file names of the python plugins in the directory path.</tt></dd></dl> <dl><dt><a name="-getProfilesPath"><strong>getProfilesPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the profiles directory path, which is the settings directory joined with profiles.</tt></dd></dl> <dl><dt><a name="-getPythonDirectoryNames"><strong>getPythonDirectoryNames</strong></a>(directoryName)</dt><dd><tt>Get the python directories.</tt></dd></dl> <dl><dt><a name="-getPythonDirectoryNamesRecursively"><strong>getPythonDirectoryNamesRecursively</strong></a>(directoryName<font color="#909090">=''</font>)</dt><dd><tt>Get the python directories recursively.</tt></dd></dl> <dl><dt><a name="-getPythonFileNamesExceptInit"><strong>getPythonFileNamesExceptInit</strong></a>(fileInDirectory<font color="#909090">=''</font>)</dt><dd><tt>Get the python fileNames of the directory which the fileInDirectory is in, except for the __init__.py file.</tt></dd></dl> <dl><dt><a name="-getPythonFileNamesExceptInitRecursively"><strong>getPythonFileNamesExceptInitRecursively</strong></a>(directoryName<font color="#909090">=''</font>)</dt><dd><tt>Get the python fileNames of the directory recursively, except for the __init__.py files.</tt></dd></dl> <dl><dt><a name="-getSettingsPath"><strong>getSettingsPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the settings directory path, which is the home directory joined with .skeinforge.</tt></dd></dl> <dl><dt><a name="-getSkeinforgePath"><strong>getSkeinforgePath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the skeinforge directory path.</tt></dd></dl> <dl><dt><a name="-getSkeinforgePluginsPath"><strong>getSkeinforgePluginsPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the skeinforge plugins directory path.</tt></dd></dl> <dl><dt><a name="-getSummarizedFileName"><strong>getSummarizedFileName</strong></a>(fileName)</dt><dd><tt>Get the fileName basename if the file is in the current working directory, otherwise return the original full name.</tt></dd></dl> <dl><dt><a name="-getTemplatesPath"><strong>getTemplatesPath</strong></a>(subName<font color="#909090">=''</font>)</dt><dd><tt>Get the templates directory path.</tt></dd></dl> <dl><dt><a name="-getTextIfEmpty"><strong>getTextIfEmpty</strong></a>(fileName, text)</dt><dd><tt>Get the text from a file if it the text is empty.</tt></dd></dl> <dl><dt><a name="-getTextLines"><strong>getTextLines</strong></a>(text)</dt><dd><tt>Get the all the lines of text of a text.</tt></dd></dl> <dl><dt><a name="-getUntilDot"><strong>getUntilDot</strong></a>(text)</dt><dd><tt>Get the text until the last dot, if any.</tt></dd></dl> <dl><dt><a name="-getVersionFileName"><strong>getVersionFileName</strong></a>()</dt><dd><tt>Get the file name of the version date.<a href="#-getFabmetheusUtilitiesPath">getFabmetheusUtilitiesPath</a>(subName=)</tt></dd></dl> <dl><dt><a name="-isFileWithFileTypeWithoutWords"><strong>isFileWithFileTypeWithoutWords</strong></a>(fileType, fileName, words)</dt><dd><tt>Determine if file has a given file type, but with does not contain a word in a list.</tt></dd></dl> <dl><dt><a name="-makeDirectory"><strong>makeDirectory</strong></a>(directoryPath)</dt><dd><tt>Make a directory if it does not already exist.</tt></dd></dl> <dl><dt><a name="-removeBackupFilesByType"><strong>removeBackupFilesByType</strong></a>(fileType)</dt><dd><tt>Remove backup files by type.</tt></dd></dl> <dl><dt><a name="-removeBackupFilesByTypes"><strong>removeBackupFilesByTypes</strong></a>(fileTypes)</dt><dd><tt>Remove backup files by types.</tt></dd></dl> <dl><dt><a name="-writeFileMessageEnd"><strong>writeFileMessageEnd</strong></a>(end, fileName, fileText, message)</dt><dd><tt>Write to a fileName with a suffix and print a message.</tt></dd></dl> <dl><dt><a name="-writeFileText"><strong>writeFileText</strong></a>(fileName, fileText, writeMode<font color="#909090">='w+'</font>)</dt><dd><tt>Write a text to a file.</tt></dd></dl> </td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#55aa55"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> <td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br> <strong>__credits__</strong> = 'Art of Illusion <http://www.artofillusion.org/>'<br> <strong>__date__</strong> = '$Date: 2008/02/05 $'<br> <strong>__license__</strong> = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'<br> <strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)<br> <strong>globalTemporarySettingsPath</strong> = '/home/enrique/.skeinforge'</td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#7799ee"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr> <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> <td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#7799ee"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr> <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> <td width="100%">Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table> </body></html>