def removeZip():
 zipName = 'reprap_python_beanshell'
 zipNameExtension = (zipName + '.zip')
 if (zipNameExtension in os.listdir(os.getcwd())):
  os.remove(zipNameExtension)
 shellCommand = ('zip -r %s * -x \\*.pyc \\*~' % zipName)
 commandResult = os.system(shellCommand)
 if (commandResult != 0):
  print 'Failed to execute the following command in removeZip in prepare.'
  print shellCommand

def removeZip ( ) : zipName = 'reprap_python_beanshell' zipNameExtension = ( zipName + '.zip' ) if ( zipNameExtension in os . listdir ( os . getcwd ( ) ) ) : os . remove ( zipNameExtension ) shellCommand = ( 'zip -r %s * -x \\*.pyc \\*~' % zipName ) commandResult = os . system ( shellCommand ) if ( commandResult != 0 ) : print 'Failed to execute the following command in removeZip in prepare.' print shellCommand
remove the zip file .