def __enter__(self): _rcwrap(ecmd.ecmdLoadDll(self.dll, self.version)) setGlobalVar(ecmd.ECMD_GLOBALVAR_QUIETERRORMODE, 1) if self.args: _rcwrap(ecmd.ecmdCommandArgs(self.args)) for (name, version) in self.extensions.items(): getattr(ecmd, name + "InitExtension")(version) return self
def __enter__(self): _rcwrap(ecmd.ecmdLoadDll(self.dll, self.version)) setGlobalVar(ecmd.ECMD_GLOBALVAR_QUIETERRORMODE, 1) if self.args: _rcwrap(ecmd.ecmdCommandArgs(self.args)) for (name, version) in self.extensions.items(): getattr(ecmd, name+"InitExtension")(version) return self
print("\n\n") testNum = 0 testNum+=1; print("dll %02d) Load the plugin" % testNum) rc = ecmd.ecmdLoadDll(os.environ['ECMD_DLL_FILE'], "ver13,ver14") if (rc): print("ERROR: problem on dll load") for i in sys.argv: print(i) #print("type argv: %s" % type(sys.argv)) #print("type argv[0]: %s" % type(sys.argv[0])) #print("type argv[1]: %s" % type(sys.argv[1])) rc = ecmd.ecmdCommandArgs(sys.argv) if (rc): print("ERROR: problem calling ecmdCommandArgs") for i in sys.argv: print(i) optFound = False #optFound = ecmd.ecmdParseOption(sys.argv, "-y") print("optFound: %s" % optFound) for i in sys.argv: print(i) optValue = "Not Real Dummy" #optValue = ecmd.ecmdParseOptionWithArgs(sys.argv, "-g")
testNum = 0 testNum += 1 print("dll %02d) Load the plugin" % testNum) rc = ecmd.ecmdLoadDll(os.environ['ECMD_DLL_FILE'], "ver14,ver15") if (rc): print("ERROR: problem on dll load") for i in sys.argv: print(i) #print("type argv: %s" % type(sys.argv)) #print("type argv[0]: %s" % type(sys.argv[0])) #print("type argv[1]: %s" % type(sys.argv[1])) rc = ecmd.ecmdCommandArgs(sys.argv) if (rc): print("ERROR: problem calling ecmdCommandArgs") for i in sys.argv: print(i) optFound = False #optFound = ecmd.ecmdParseOption(sys.argv, "-y") print("optFound: %s" % optFound) for i in sys.argv: print(i) optValue = "Not Real Dummy" #optValue = ecmd.ecmdParseOptionWithArgs(sys.argv, "-g")