<s> import arcpy <EOL> import os <EOL> currentPath = os . path . dirname ( __file__ ) <EOL> geodatabasePath = os . path . normpath ( os . path . join ( currentPath , r"<STR_LIT>" ) ) <EOL> scratchPath = geodatabasePath <EOL> toolboxesPath = os . path . normpath ( os . path . join ( currentPath , r"<STR_LIT>" ) ) <EOL> cibSourcePath = os . path . normpath ( os . path . join ( currentPath , r"<STR_LIT>" ) ) <EOL> scratchGDB = os . path . join ( scratchPath , "<STR_LIT>" ) <EOL> toolbox = os . path . join ( toolboxesPath , "<STR_LIT>" ) <EOL> def createScratch ( ) : <EOL> try : <EOL> arcpy . CreateFileGDB_management ( scratchPath , "<STR_LIT>" ) <EOL> except : <EOL> print ( "<STR_LIT>" ) <EOL> return <EOL> def deleteScratch ( ) : <EOL> try : <EOL> arcpy . Delete_management ( scratchGDB ) <EOL> except : <EOL> print ( "<STR_LIT>" ) <EOL> return <EOL> createScratch ( ) </s>
