self.checkargs(line,"<projectname>") except Error,e: print e return try: sy.check_name(line) except Error,e: print e return 0 dirname = os.path.abspath(line) if sy.dirExist(dirname): print "Project "+line+" already exists" return 0 else: try: settings.active_project = Project(dirname,void=0) except Error,e: print e return self.setPrompt("POD",settings.active_project.getName()) print "Project "+settings.active_project.getName()+" created" def complete_load(self,text,line,begidx,endidx): """ complete load command with files under directory """ path = line.split(" ")[1] if path.find("/") == -1: # sub path = "" elif text.split() == "": # sub/sub/ path = "/".join(path)+"/" else: # sub/sub