wizard = BWizard.BWizard(page_list)
wizard.show()
wizard.exec_()
+ project = QApplication.instance().project
+ to_be_opened = project.info("TO_BE_OPENED")
+ command_lines = project.info("COMMAND_LINES")
+ relevant_files = project.info("RELEVANT_FILES")
+ if to_be_opened:
+ for ide in to_be_opened:
+ command_line = command_lines[ide]
+ relevant_file = relevant_files[ide]
+ import subprocess
+ subprocess.call(command_line + " \"" + relevant_file + "\"")
+ sys.exit()
def editProject():
page_list = [BOpenPage, BVersionPage, BCpuPage, BToolchainPage, BModulePage, BOutputPage, BCreationPage, BFinalPage]
pass
else:
newProject()
- sys.exit(app.exec_())
if __name__ == '__main__':
main()
Function that creates codelite projects and return the project relevant file.
"""
directory = project_info.info("PROJECT_PATH")
- prjdir = directory + "/" + os.path.basename(directory)
+ prjdir = directory + os.sep + os.path.basename(directory)
workspace = codeliteWorkspaceGenerator(project_info)
- open(directory + "/" + os.path.basename(prjdir) + ".workspace", "w").write(workspace)
+ open(directory + os.sep + os.path.basename(prjdir) + ".workspace", "w").write(workspace)
project = codeliteProjectGenerator(project_info)
- open(directory + "/" + os.path.basename(prjdir) + ".project", "w").write(project)
- return directory + "/" + os.path.basename(prjdir) + ".workspace"
+ open(directory + os.sep + os.path.basename(prjdir) + ".project", "w").write(project)
+ return directory + os.sep + os.path.basename(prjdir) + ".workspace"
####