def createLogFile(retry=None): try : if not os.path.isfile(LOGFILE): f = open(LOGFILE, mode="w") f.write("python-skype: "+helpers.version("python-skype")+"\n") f.write("python-imaging: "+helpers.version("python-imaging")+"\n") f.close() except IOError: if retry: pass else: os.mkdir(os.getenv("HOME")+"/.skype-wrapper") createLogFile(1)
def createLogFile(retry=None): try : if not os.path.isfile(LOGFILE): f = open(LOGFILE, mode="w") f.write("python-skype: "+helpers.version("python-skype")+"\n") f.write("python-imaging: "+helpers.version("python-imaging")+"\n") f.write("python-indicate: "+helpers.version("python-indicate")+"\n") f.write("unity: "+helpers.version("unity")+"\n") f.write("unity-2d: "+helpers.version("unity-2d")+"\n") f.write("telepathy-mission-control-5: "+helpers.version("telepathy-mission-control-5")+"\n") f.close() else : f = open(LOGFILE, mode="w") f.write("------------------------------------------\n") f.close() except IOError: if retry: pass else: os.mkdir(os.getenv("HOME")+"/.skype-wrapper") createLogFile(1)