示例#1
0
 def __init__(self, name):
     Lesson.__init__(self, name, "GeoGig lessons", "lesson.html")
     self.folder = os.path.dirname(traceback.extract_stack()[-2][0])
     self.description = self.resolveFile(self.description)
     self.addStep("Preparing lesson", "Preparing lesson",
                  backupConfiguration)
     helpFile = os.path.abspath(
         os.path.join(os.path.dirname(__file__), "common",
                      "preparegeogig.html"))
     self.addStep("Prepare GeoGig environment",
                  helpFile,
                  endcheck=checkGeoGig,
                  steptype=Step.MANUALSTEP)
     self.setCleanup(restoreConfiguration)
 def __init__(self, name):
     folder = os.path.dirname(traceback.extract_stack()[-2][0])
     Lesson.__init__(self,
                     name,
                     "GeoGig lessons",
                     "lesson.html",
                     folder=folder)
     helpFile = os.path.abspath(
         os.path.join(os.path.dirname(__file__), "common",
                      "preparegeogig.md"))
     self.addStep("Prepare GeoGig environment",
                  helpFile,
                  endcheck=checkGeoGig,
                  steptype=Step.MANUALSTEP)
     self.setCleanup(cleanup)