def __init__(self, project):
        try:
            f = open(of_root + "apps/myApps/" + project + "/" + project + ".cbp", "r")
            f.close()
        except IOError:
            self.createFromEmpty(project)

        self.projectName = project
        self.project = ofProject(of_root + "apps/myApps/" + project + "/" + project + ".cbp")
Exemple #2
0
    def __init__(self, project, path=""):
        global of_path
        try:
            if len(path) != 0:
                of_path = path
            f = open(of_path + project + "/" + project + ".cbp", "r")
            f.close()
        except IOError:
            self.createFromEmpty(project)

        self.projectName = project
        self.project = ofProject(of_path + project + "/" + project + ".cbp")
    def __init__(self, project):
        try:
            f = open(
                of_root + "apps/myApps/" + project + "/" + project + ".cbp",
                "r")
            f.close()
        except IOError:
            self.createFromEmpty(project)

        self.projectName = project
        self.project = ofProject(of_root + "apps/myApps/" + project + "/" +
                                 project + ".cbp")
    def __init__(self, project, path=""):
        global of_path
        try:
            if len(path) != 0:
                of_path = path
            f = open(of_path + project + "/" + project + ".cbp", "r")
            f.close()
        except IOError:
            self.createFromEmpty(project)

        self.projectName = project
        self.project = ofProject(of_path + project + "/" + project + ".cbp")