def newshow(self, showname): ''' this will make show struct directories and info (.showinfo) file''' A, B, C = 'seq/scene/shot', 'scene/shot', 'shot' print('choose one of these types') print('1. show/' + A) print('2. show/' + B) print('3. show/' + C) userinput = raw_input() if userinput not in ['1', '2', '3']: self.log+='intput invalid, please type 1-3' return else: showtype = [A, B, C][int(userinput)-1] showpath = ospath.join(self.workingdir, showname) os.mkdir(showpath) maketree.make('show', showpath) self.log+=showtype self.log+=showpath self.makeShowInfoFile(showtype, showpath)
def newshot(self, shot): path = ospath.join(self.workingdir, shot) os.mkdir(path) maketree.make('shot', path)