def doPopupMakefile(self, event): pathToOpenedFile = split(realpath(self.getPageObject().filePath))[0] if not exists(join(pathToOpenedFile, 'Makefile')): curPath = getcwd() chdir(pathToOpenedFile) GenerateMakefile().generate(self.getPageObject().fileName, self.getPageObject().projectType, self.API.pathToMansos) chdir(curPath) self.addPage(join(pathToOpenedFile, 'Makefile'))
def __init__(self, API): self.API = API self.generateMakefile = GenerateMakefile() self.editor = self.API.tabManager.getPageObject