def walker(arg, dirname, files): l = len(MIXERROOT) dirname = mxutil.terminate_with_slash(dirname) if dirname[:l] != MIXERROOT: err.write("Error: Path does not start with MIXERROOT!\n") err.write(" " + dirname + "\n") sys.exit(7) for f in files: if f[-6:] == ".mixer": if quiet == 0: print 'Processing:' + dirname + f workerfunc(dirname[l:], f[:-6])
def walker(arg,dirname,files): l = len(MIXERROOT) dirname = mxutil.terminate_with_slash(dirname) if dirname[:l] != MIXERROOT: err.write("Error: Path does not start with MIXERROOT!\n") err.write(" "+dirname+"\n") sys.exit(7) for f in files: if f[-6:] == ".mixer": if quiet == 0: print 'Processing:'+dirname+f workerfunc(dirname[l:],f[:-6])
# This file is protected under the GNU General Public License # (see the file "GPL.txt" in die main distribution directory for details). # # $Id$ # __version__ = "1.01" import os, sys, types, time import mxutil, maxml err = sys.stderr # First we find the MIXERROOT (note: this does not return if nothing is found!) (startdir, MIXERROOT) = mxutil.find_root() MIXERLIB = mxutil.terminate_with_slash(os.path.join(MIXERROOT, 'lib')) if startdir[:len(MIXERROOT)] != MIXERROOT: err.write("Error: Current directory is not in subtree of MIXERROOT!\n") err.write(" Current dir: " + startdir + "\n") err.write(" MIXERROOT : " + MIXERROOT + "\n") # Now some primitive command line processing: force = 0 nodoctype = 0 quiet = 0 for a in sys.argv[1:]: if a == '-f': force = 1 if a == '-n': nodoctype = 1 if a == '-q': quiet += 1 # Now we add the lib directory to our Python path and import user funcs:
# This file is protected under the GNU General Public License # (see the file "GPL.txt" in die main distribution directory for details). # # $Id$ # __version__ = "1.01" import os,sys,types,time import mxutil,maxml err = sys.stderr # First we find the MIXERROOT (note: this does not return if nothing is found!) (startdir,MIXERROOT) = mxutil.find_root() MIXERLIB = mxutil.terminate_with_slash(os.path.join(MIXERROOT,'lib')) if startdir[:len(MIXERROOT)] != MIXERROOT: err.write("Error: Current directory is not in subtree of MIXERROOT!\n") err.write(" Current dir: "+startdir+"\n") err.write(" MIXERROOT : "+MIXERROOT+"\n") # Now some primitive command line processing: force = 0 nodoctype = 0 quiet = 0 for a in sys.argv[1:]: if a == '-f': force = 1 if a == '-n': nodoctype = 1 if a == '-q': quiet += 1 # Now we add the lib directory to our Python path and import user funcs: