def cgruDocs(): cgrudocs.show() def confReload(): cgruconfig.Config()
def docsNuke(): cgrudocs.show('nuke')
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys cgru_location_Var = 'CGRU_LOCATION' cgru_location = os.getenv(cgru_location_Var) if cgru_location is None or cgru_location == '': cgru_location = os.path.abspath(sys.argv[0]) cgru_location = os.path.dirname(cgru_location) cgru_location = os.path.dirname(cgru_location) os.putenv(cgru_location_Var, cgru_location) os.environ[cgru_location_Var] = cgru_location cgru_python = os.getenv('CGRU_PYTHON') if cgru_python is None or cgru_python == '': sys.path.append(os.path.join(cgru_location, 'lib/python')) import cgrudocs path = None if len(sys.argv) > 1: path = sys.argv[1] cgrudocs.show(path)
def cgruDocs(): cgrudocs.show()
def docsCGRU(): cgrudocs.show()
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import cgrudocs from optparse import OptionParser Parser = OptionParser(usage="%prog [Options] output\nType \"%prog -h\" for help", version="%prog 1.0") Parser.add_option('-V', '--verbose', dest='verbose', action='store_true', default=False, help='Verbose mode') Parser.add_option('-D', '--debug', dest='debug', action='store_true', default=False, help='Debug mode') Options, Args = Parser.parse_args() if Options.debug: Options.verbose = True Path = None if len(Args): Path = Args[-1] cgrudocs.show( Path)
def docsNuke(): cgrudocs.show('nuke')
def docsCGRU(): cgrudocs.show()
import sys import cgrudocs from optparse import OptionParser Parser = OptionParser( usage="%prog [Options] output\nType \"%prog -h\" for help", version="%prog 1.0") Parser.add_option('-V', '--verbose', dest='verbose', action='store_true', default=False, help='Verbose mode') Parser.add_option('-D', '--debug', dest='debug', action='store_true', default=False, help='Debug mode') Options, Args = Parser.parse_args() if Options.debug: Options.verbose = True Path = None if len(Args): Path = Args[-1] cgrudocs.show(Path)
def cgruDocs(): cgrudocs.show()