示例#1
0
文件: example.py 项目: djlambert/eCMD
#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")
print("optValue: %s" % optValue)

for i in sys.argv:
    print(i)

testNum+=1; print("dll %02d) Query Plugin Info" % testNum)
dllInfo = ecmd.ecmdDllInfo()
rc = ecmd.ecmdQueryDllInfo(dllInfo)
if (rc):
    print("ERROR: problem querying plugin")
print("some dll info:\n");
print("dllType        = %s" % dllInfo.dllType)
print("dllProduct     = %s" % dllInfo.dllProduct)
print("dllProductType = %s" % dllInfo.dllProductType)
print("dllEnv         = %s" % dllInfo.dllEnv)
print("dllBuildDate   = %s" % dllInfo.dllBuildDate)
print("dllCapiVersion = %s" % dllInfo.dllCapiVersion)
print("dllBuildInfo   = %s" % dllInfo.dllBuildInfo)

# Pulling this test for now
# It breaks builds where ring support isn't included, so some smarts would need to be put into it
# JTA 11/11/2014
if (0):
示例#2
0
文件: example.py 项目: kahnevan/eCMD
print("optFound: %s" % optFound)

for i in sys.argv:
    print(i)

optValue = "Not Real Dummy"
#optValue = ecmd.ecmdParseOptionWithArgs(sys.argv, "-g")
print("optValue: %s" % optValue)

for i in sys.argv:
    print(i)

testNum += 1
print("dll %02d) Query Plugin Info" % testNum)
dllInfo = ecmd.ecmdDllInfo()
rc = ecmd.ecmdQueryDllInfo(dllInfo)
if (rc):
    print("ERROR: problem querying plugin")
print("some dll info:\n")
print("dllType        = %s" % dllInfo.dllType)
print("dllProduct     = %s" % dllInfo.dllProduct)
print("dllProductType = %s" % dllInfo.dllProductType)
print("dllEnv         = %s" % dllInfo.dllEnv)
print("dllBuildDate   = %s" % dllInfo.dllBuildDate)
print("dllCapiVersion = %s" % dllInfo.dllCapiVersion)
print("dllBuildInfo   = %s" % dllInfo.dllBuildInfo)

testNum += 1
print("dll %02d) Python tuple return example" % testNum)
(rc, unitIdVer) = ecmd.ecmdGetUnitIdVersion()
if (rc):