← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #173873]: indent

 

Question #173873 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/173873

Description changed to:
def LoggFileHandler(logg):
     Append2LoggFile("entering LoggFileHandler("+logg+")")
     if firstTime == 0:
         if os.path.isfile(LoggFile):    #check if logg file exists
              os.remove(LoggFile)         #delete if first time program runs
              Append2LoggFile("removed old logg file")
              Append2LoggFile(" ")
              CreateLoggFile()            #create new logg file
              Append2LoggFile(logg)
         else:
             CreateLoggFile()            #if not found create new  
             Append2LoggFile(logg)         
     else:
          Append2LoggFile(logg)

This code gives me an dedent error at the last else:
I cant make it wright...

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.