rem stringlengths 0 322k | add stringlengths 0 2.05M | context stringlengths 8 228k |
|---|---|---|
if Target == "NT386MINGNU" or (Target == "NT386" and GCC_BACKEND and OSType == "WIN32"): | if Target == "NT386MINGNU" or (Target == "NT386" and GCC_BACKEND and TargetOS == "WIN32"): | def SetupEnvironment(): SystemDrive = os.environ.get("SystemDrive", "") if os.environ.get("OS") == "Windows_NT": HostIsNT = True else: HostIsNT = False SystemDrive = os.environ.get("SYSTEMDRIVE") if SystemDrive: SystemDrive += os.path.sep # Do this earlier so that its link isn't a problem. # Looking in the registry H... |
if Target == "NT386GNU" or (Target == "NT386" and GCC_BACKEND and OSType == "POSIX"): | if Host == "NT386GNU" or (Host == "NT386" and GCC_BACKEND and TargetOS == "POSIX"): | def SetupEnvironment(): SystemDrive = os.environ.get("SystemDrive", "") if os.environ.get("OS") == "Windows_NT": HostIsNT = True else: HostIsNT = False SystemDrive = os.environ.get("SYSTEMDRIVE") if SystemDrive: SystemDrive += os.path.sep # Do this earlier so that its link isn't a problem. # Looking in the registry H... |
if Config == "NT386": | if Config == "NT386" or Config == "I386_NT": | def FormInstallRoot(PackageSetName): AltConfig = {"NT386":"x86"}.get(Config, Config) a = os.path.join(GetStage(), "cm3-" + PackageSetName + "-" + AltConfig + "-" + CM3VERSION) if Config == "NT386": a = a + "-VC" + GetVisualCPlusPlusVersion() return a |
if Target.find("LINUX") != -1 or Target.find("BSD") != -1: if Target.find("64") != -1 or Target.find("ALPHA") != -1: Assemble = Assemble + " --64" else: Assemble = Assemble + " --32" | if Target != "PPC32_OPENBSD": if Target.find("LINUX") != -1 or Target.find("BSD") != -1: if Target.find("64") != -1 or Target.find("ALPHA") != -1: Assemble = Assemble + " --64" else: Assemble = Assemble + " --32" | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Target Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. SunCompile = "/usr/ccs/bin/cc -g -mt -xcode=pic32 -xldscope=symbolic " GnuCo... |
"fix_nl": BuildAll or OSType == "WIN32", | def _FilterPackage(Package): PackageConditions = { "m3gdb": (M3GDB or CM3_GDB) and {"FreeBSD4": True, "LINUXLIBC6" : True, "SOLgnu" : True, "NetBSD2_i386" : True, "NT386GNU" : True, }.get(Target, False), "fix_nl": BuildAll or OSType == "WIN32", "tcl": BuildAll or HAVE_TCL, "tapi": BuildAll or OSType == "WIN32", "seria... | |
a.wrte(" | a.write(" | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = CM3VERSION + "-" + time.strftime("%Y%m%d") # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # p... |
UNameCommand = os.popen("uname").read().lower() UNameTuple = uname() UName = UNameTuple[0].lower() UNameArchP = platform.processor().lower() UNameArchM = UNameTuple[4].lower() UNameRevision = UNameTuple[2].lower() | def GetVersion(Key): # # Only read the file if an environment variable is "missing" (they # usually all are, ok), and only read it once. # #print("WriteVariablesIntoEnvironment:3") Value = Versions.get(Key) if Value: return Value # # CM3VERSION d5.7.1 # CM3VERSIONNUM 050701 # CM3LASTCHANGED 2009-01-21 # RegExp = re.com... | |
if (UName.startswith("windows") | _Cm3Host = os.popen(CM3 + " -version 2>/dev/null | egrep \" +host: +\"").read() if _Cm3Host != "": Host = _Cm3Host.replace(" ", "").replace("host:", "").replace("\r", "").replace("\n", "") if Host == None: UNameCommand = os.popen("uname").read().lower() UNameTuple = uname() UName = UNameTuple[0].lower() UNameArchP = ... | def GetVersion(Key): # # Only read the file if an environment variable is "missing" (they # usually all are, ok), and only read it once. # #print("WriteVariablesIntoEnvironment:3") Value = Versions.get(Key) if Value: return Value # # CM3VERSION d5.7.1 # CM3VERSIONNUM 050701 # CM3LASTCHANGED 2009-01-21 # RegExp = re.com... |
def contains(s, t): return s.find(t) != -1 target = Target.lower() currentVC = {"80":1, "90":1} nativeNT = contains(target, "nt386") or target.endswith("_nt") currentNT = nativeNT and currentVC.contains(GetVisualCPlusPlusVersion()) oldNT = nativeNT and not currentNT preferZip = contains(target, "nt386") or target.... | def contains(s, t): return s.find(t) != -1 | |
for a in ["m3cc", "cm3"]: if a in AllPackages: AllPackages.remove(a) | if "m3cc" in AllPackages: AllPackages.remove("m3cc") | def Setup(ExistingCompilerRoot, NewRoot): global InstallRoot InstallRoot = NewRoot os.environ["CM3_INSTALL"] = NewRoot if (OriginalLIB): # This is Windows-only thing. os.environ["LIB"] = os.path.join(NewRoot, "lib") + OriginalLIB os.environ["PATH"] = (os.path.join(NewRoot, "bin") + OriginalPATH) CopyCompiler(ExistingC... |
RealClean(Packages) or FatalError() | def Setup(ExistingCompilerRoot, NewRoot): global InstallRoot InstallRoot = NewRoot os.environ["CM3_INSTALL"] = NewRoot if (OriginalLIB): # This is Windows-only thing. os.environ["LIB"] = os.path.join(NewRoot, "lib") + OriginalLIB os.environ["PATH"] = (os.path.join(NewRoot, "bin") + OriginalPATH) CopyCompiler(ExistingC... | |
ShipCompiler() or FatalError() RealClean(Packages) or FatalError() | def Setup(ExistingCompilerRoot, NewRoot): global InstallRoot InstallRoot = NewRoot os.environ["CM3_INSTALL"] = NewRoot if (OriginalLIB): # This is Windows-only thing. os.environ["LIB"] = os.path.join(NewRoot, "lib") + OriginalLIB os.environ["PATH"] = (os.path.join(NewRoot, "bin") + OriginalPATH) CopyCompiler(ExistingC... | |
if not isdir(a): | if isdir(a): | def RemoveDirectoryRecursive(a): if os.name != "nt": print("rm -rf " + a) else: print("rmdir /q/s " + a) if not isdir(a): shutil.rmtree(a) return True |
print("Name + "=" + Value + ";export " + Name) | print(Name + "=" + Value + ";export " + Name) | def SetEnvironmentVariable(Name, Value): if not os.environ.get(Name) or (os.environ[Name] != Value): os.environ[Name] = Value if os.name == "posix": print("Name + "=" + Value + ";export " + Name) else: print("set " + Name + "=" + Value) |
def MakeDebianPackage(name, input, output, prefix): | def MakeDebianPackage(input, prefix): | def MakeDebianPackage(name, input, output, prefix): |
for name in PackageSets: MakeDebianPackage(name, FormInstallRoot(name), GetStage() + "/cm3-" + name + ".deb", "/usr/local/cm3") | MakeDebianPackage(FormInstallRoot("all"), "/usr/local/cm3") | def Setup(ExistingCompilerRoot, NewRoot): global InstallRoot InstallRoot = NewRoot os.environ["CM3_INSTALL"] = NewRoot if (OriginalLIB): # This is Windows-only thing. os.environ["LIB"] = os.path.join(NewRoot, "lib") + OriginalLIB os.environ["PATH"] = (os.path.join(NewRoot, "bin") + OriginalPATH) CopyCompiler(ExistingC... |
b = re.sub("(Linux 2.4\..+$", "Linux2.4", b) | b = re.sub("Linux 2.4\..+$", "Linux2.4", b) | def FormInstallRoot(PackageSetName): AltConfig = {"NT386":"x86"}.get(Config, Config) a = os.path.join(GetStage(), "cm3-" + PackageSetName + "-" + AltConfig + "-" + CM3VERSION) if Config == "NT386" or Config == "I386_NT": a = a + "-VC" + GetVisualCPlusPlusVersion() else: b = os.popen("uname -sr").read() b = re.sub("(Lin... |
{\\*\\generator Msftedit 5.41.15.1515;}\\viewkind4\\uc1\\pard\\lang1033\\f0\\fs20""" + licenseText.replace("\n", "\\par\n") | {\\*\\generator Msftedit 5.41.15.1515;}\\viewkind4\\uc1\\pard\\lang1033\\f0\\fs20""" + licenseText.replace("\n", " ") | def HandleDir(state, dir): for a in os.listdir(dir): b = os.path.join(dir, a) if isdir(b): wix.write("""<Directory Id='d%d' Name='%s'>\n""" % (state.dirID, ConvertPathForWin32(a))) state.dirID += 1 HandleDir(state, b) # recursion! wix.write("</Directory>\n") else: wix.write("""<Component Id='c%s' Guid='%s'>\n""" % (str... |
"I386_INTERIX" : "gcc -g " "SOLgnu" : "/usr/sfw/bin/gcc -g " | "I386_INTERIX" : "gcc -g ", "SOLgnu" : "/usr/sfw/bin/gcc -g ", | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Target Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. SunCompile = "/usr/ccs/bin/cc -g -mt -xcode=pic32 -xldscope=symbolic " GnuCo... |
"PPC64", "SPARC", "SPARC32", "SPARC64", "MIPS32", "MIPS64", "PA32", "PA64", "SH"]: for os in ["AIX", "CE", "CYGWIN", "DARWIN", "FREEBSD", "HPUX" "INTERIX", "IRIX", | "PPC64", "SPARC", "SPARC32", "SPARC64", "MIPS32", "MIPS64EL", "MIPS64", "PA32", "PA64", "SH"]: for os in ["AIX", "CE", "CYGWIN", "DARWIN", "FREEBSD", "HPUX", "INTERIX", "IRIX", | def _GetAllTargets(): # legacy naming Targets = [ "NT386", "NT386GNU", "NT386MINGNU", "LINUXLIBC6", "SOLsun", "SOLgnu", "FreeBSD4", "NetBSD2_i386" ] # systematic naming for proc in ["ALPHA", "ALPHA32", "ALPHA64", "AMD64", "ARM", "ARMEL", "IA64", "I386", "PPC", "PPC32", "PPC64", "SPARC", "SPARC32", "SPARC64", "MIPS3... |
if false: | if False: | def GetVersion(Key): # # Only read the file if an environment variable is "missing" (they # usually all are, ok), and only read it once. # #print("WriteVariablesIntoEnvironment:3") Value = Versions.get(Key) if Value: return Value # # CM3VERSION d5.7.1 # CM3VERSIONNUM 050701 # CM3LASTCHANGED 2009-01-21 # RegExp = re.com... |
CCompiler = "CCompiler" | CCompiler = "cc" | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
CCompiler = "/usr/bin/CCompiler" | CCompiler = "/usr/bin/cc" | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
CCompilerFlags = CCompilerFlags + ({ "AMD64_LINUX" : " -m64 -mno-align-double ", "AMD64_DARWIN" : " -arch x86_64 ", "PPC64_DARWIN" : " -arch ppc64 ", "ARM_DARWIN" : " -march=armv6 -mcpu=arm1176jzf-s ", "LINUXLIBC6" : " -m32 -mno-align-double ", "I386_LINUX" : " -m32 -mno-align-double ", "MIPS6... | CCompilerFlags = CCompilerFlags + ({ "AMD64_LINUX" : " -m64 -mno-align-double ", "AMD64_DARWIN" : " -arch x86_64 ", "PPC64_DARWIN" : " -arch ppc64 ", "ARM_DARWIN" : " -march=armv6 -mcpu=arm1176jzf-s ", "LINUXLIBC6" : " -m32 -mno-align-double ", "I386_LINUX" : " -m32 -mno-align-double ", "MIPS64... | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
if StringTagged(Target, "VMS") and AssembleOnTarget: AssemblerMk = "macro" AssemblerSh = "macro" AssemblerFlags = "/alpha " elif Target == "I386_SOLARIS" or Target == "AMD64_SOLARIS": a = (" if test -x /usr/sfw/bin/gas ; then echo /usr/sfw/bin/gas ; \\\n" + " elif test -x /opt/csw/gnu/as ; then echo /opt/... | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... | |
"I386_SOLARIS" : " -s ", "AMD64_SOLARIS" : " -s -xarch=amd64 ", "SOLgnu" : " -s -xarch=v8plus ", "SOLsun" : " -s -xarch=v8plus ", "SPARC32_SOLARIS" : " -s -xarch=v8plus ", "SPARC64_SOLARIS" : " -s -xarch=v9 ", | "I386_SOLARIS" : " -Qy -s", "AMD64_SOLARIS" : " -Qy -s -xarch=generic64 ", "SOLgnu" : " -Qy -s -K PIC -xarch=v8plus ", "SOLsun" : " -Qy -s -K PIC -xarch=v8plus ", "SPARC32_SOLARIS" : " -Qy -s -K PIC -xarch=v8plus ", "SPARC64_SOLARIS" : " -Qy -s -K PIC -xarch=v9 ", | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
AssemblerMk = GnuPlatformPrefix + AssemblerMk AssemblerSh = GnuPlatformPrefix + AssemblerSh | Assembler = GnuPlatformPrefix + Assembler | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
+ "Assemble=" + AssemblerMk + " " + AssemblerFlags + "\n" | + "Assemble=" + Assembler + " " + AssemblerFlags + "\n" | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
+ "Assemble=" + AssemblerSh + " " + AssemblerFlags + "\n" | + "Assemble=" + Assembler + " " + AssemblerFlags + "\n" | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
a = AssemblerMk + " " + fullpath + " -o " + BootDir + "/" + Object | a = Assembler + " " + fullpath + " -o " + BootDir + "/" + Object | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
VmsMake.write("$ " + AssemblerMk + " " + a + "\n") | VmsMake.write("$ " + Assembler + " " + a + "\n") | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
cc = "/usr/ccs/bin/cc" | cc = "/usr/bin/cc" | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") if Config == "ALPHA32_VMS": cc = "cc" cfla... |
b = re.sub("-+$", "", b) | b = re.sub("-.+$", "", b) | def FormInstallRoot(PackageSetName): AltConfig = {"NT386":"x86"}.get(Config, Config) a = os.path.join(GetStage(), "cm3-" + PackageSetName + "-" + AltConfig + "-" + CM3VERSION) if Config == "NT386" or Config == "I386_NT": a = a + "-VC" + GetVisualCPlusPlusVersion() else: b = os.popen("uname -sr").read() b = re.sub("Linu... |
def _MakeArchive(a): DeleteFile(a + ".tar.gz") DeleteFile(a + ".tgz") b = "tar cfz " + a + ".tgz " + a | def _MakeTGZ(a): out = a + ".tgz" DeleteFile(out) b = "tar cfz " + out + " " + a print(b + "\n") os.system(b) def _MakeZip(a): out = a + ".zip" DeleteFile(out) b = "zip -r " + out + " " + a | def _MakeArchive(a): # OpenBSD doesn't have bzip2 in base, so use gzip instead. # bzip2 is also slower DeleteFile(a + ".tar.gz") DeleteFile(a + ".tgz") b = "tar cfz " + a + ".tgz " + a print(b + "\n") os.system(b) |
AssembleOnHost = False CopyAssemblyToTarget = True if StringTagged(Target, "VMS"): | AssembleOnTarget = not vms AssembleOnHost = not AssembleOnTarget if StringTagged(Target, "VMS") and AssembleOnTarget: | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") if Config == "ALPHA32_VMS": Compile = "cc ... |
if Target.find("64") != -1 or (StringTagged(Target, "ALPHA") and not StringTagged(Target, "ALPHA32_")): | if Target.find("64") != -1 or (StringTagged(Target, "ALPHA") and not StringTagged(Target, "ALPHA32")): | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") if Config == "ALPHA32_VMS": Compile = "cc ... |
Assemble = GnuPlatformPrefix + Assemble if vms and AssembleOnHost: | if (not vms) or AssembleOnHost: | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") if Config == "ALPHA32_VMS": Compile = "cc ... |
ext_is = a.endswith(".mi") | ext_is = a.endswith(".is") | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") if Config == "ALPHA32_VMS": Compile = "cc ... |
if ext_h or ext_c or not vms or CopyAssemblyToTarget: | if ext_h or ext_c or not vms or AssembleOnTarget: | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") if Config == "ALPHA32_VMS": Compile = "cc ... |
VmsMake.write(Compile + " " + a + "\n") | VmsMake.write("$ " + Compile + " " + a + "\n") | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") if Config == "ALPHA32_VMS": Compile = "cc ... |
VmsMake.write(Assemble + " " + a + "\n") | VmsMake.write("$ " + Assemble + " " + a + "\n") VmsLink.write(Object + "/SELECTIVE_SEARCH\n") | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") if Config == "ALPHA32_VMS": Compile = "cc ... |
VmsMake.write("link /executable=cm3.exe ") for a in Objects: VmsMake.write(a + " ") VmsMake.write("\n") | VmsMake.write("$ set file/attr=(rfm=var,rat=none) *.mo\n") VmsMake.write("$ set file/attr=(rfm=var,rat=none) *.io\n") VmsMake.write("$ link /executable=cm3.exe vmslink/options\n") | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") if Config == "ALPHA32_VMS": Compile = "cc ... |
for a in [UpdateSource, Make, Makefile, VmsMake]: | for a in [UpdateSource, Make, Makefile, VmsMake, VmsLink]: | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") if Config == "ALPHA32_VMS": Compile = "cc ... |
_MakeArchive(BootDir[2:]) | if vms or StringTagged(Config, "NT") or Config == "NT386": _MakeZip(BootDir[2:]) else: _MakeTGZ(BootDir[2:]) | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") if Config == "ALPHA32_VMS": Compile = "cc ... |
if Target == "NT386GNU": Config = "I386_CYGWIN" TargetOS = "POSIX" elif Target == "NT386MINGNU": Config = "I386_MINGW" | if Target == "NT386MINGNU" or Target == "NT386": | def GetVersion(Key): # # Only read the file if an environment variable is "missing" (they # usually all are, ok), and only read it once. # #print("WriteVariablesIntoEnvironment:3") Value = Versions.get(Key) if Value: return Value # # CM3VERSION d5.7.1 # CM3VERSIONNUM 050701 # CM3LASTCHANGED 2009-01-21 # RegExp = re.com... |
else: Config = "I386_NT" TargetOS = "WIN32" Target = Config | HAVE_SERIAL = True if Target == "NT386": GCC_BACKEND = False Config = Target Target = "NT386" | def GetVersion(Key): # # Only read the file if an environment variable is "missing" (they # usually all are, ok), and only read it once. # #print("WriteVariablesIntoEnvironment:3") Value = Versions.get(Key) if Value: return Value # # CM3VERSION d5.7.1 # CM3VERSIONNUM 050701 # CM3LASTCHANGED 2009-01-21 # RegExp = re.com... |
GCC_BACKEND = False TargetOS = "WIN32" if Target.endswith("_MINGW"): HAVE_SERIAL = True TargetOS = "WIN32" | def GetVersion(Key): # # Only read the file if an environment variable is "missing" (they # usually all are, ok), and only read it once. # #print("WriteVariablesIntoEnvironment:3") Value = Versions.get(Key) if Value: return Value # # CM3VERSION d5.7.1 # CM3VERSIONNUM 050701 # CM3LASTCHANGED 2009-01-21 # RegExp = re.com... | |
cc = "cc" cflags = " " | CCompiler = "CCompiler" CCompilerFlags = " " | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
cc = "cc" cflags = "/pointer_size=64 " | CCompiler = "CCompiler" CCompilerFlags = "/pointer_size=64 " | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
cc = "/usr/bin/cc" cflags = "-g -mt -xldscope=symbolic " | CCompiler = "/usr/bin/CCompiler" CCompilerFlags = "-g -mt -xldscope=symbolic " | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
cc = { | CCompiler = { | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
cflags = { | CCompilerFlags = { | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
cflags = cflags + ({ "AMD64_LINUX" : " -m64 -mno-align-double ", | CCompilerFlags = CCompilerFlags + ({ "AMD64_LINUX" : " -m64 -mno-align-double ", | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
Assemble = "macro /alpha " | AssemblerMk = "macro" AssemblerSh = "macro" AssemblerFlags = "/alpha " elif Target == "I386_SOLARIS" or Target == "AMD64_SOLARIS": a = (" if test -x /usr/sfw/bin/gas ; then echo /usr/sfw/bin/gas ; \\\n" + " elif test -x /opt/csw/gnu/as ; then echo /opt/csw/gnu/as ; \\\n" + " else echo \"unable to find... | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
Assemble = "/usr/ccs/bin/as " | AssemblerMk = "/usr/ccs/bin/as" AssemblerSh = "/usr/ccs/bin/as" | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
Assemble = "as " | AssemblerMk = "as" AssemblerSh = "as" | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
Assemble = Assemble + " --64" | AssemblerFlags = AssemblerFlags + " --64" | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
Assemble = Assemble + " --32" Assemble = (Assemble + ({ | AssemblerFlags = AssemblerFlags + " --32" AssemblerFlags = (AssemblerFlags + ({ | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
cc = GnuPlatformPrefix + cc | CCompiler = GnuPlatformPrefix + CCompiler | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
Assemble = GnuPlatformPrefix + Assemble | AssemblerMk = GnuPlatformPrefix + AssemblerMk AssemblerSh = GnuPlatformPrefix + AssemblerSh | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
cflags = re.sub(" +", " ", cflags) cflags = re.sub(" +$", "", cflags) cflags = re.sub("^ +", "", cflags) | CCompilerFlags = re.sub(" +", " ", CCompilerFlags) CCompilerFlags = re.sub(" +$", "", CCompilerFlags) CCompilerFlags = re.sub("^ +", "", CCompilerFlags) | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
Assemble = re.sub(" +", " ", Assemble) Assemble = re.sub(" +$", "", Assemble) | AssemblerFlags = re.sub(" +", " ", AssemblerFlags) AssemblerFlags = re.sub(" +$", "", AssemblerFlags) | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
+ "CC ?= " + cc + "\n" + "CFLAGS ?= " + cflags + "\n" | + "CC ?= " + CCompiler + "\n" + "CFLAGS ?= " + CCompilerFlags + "\n" | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
+ "Assemble=" + Assemble + "\n" | + "Assemble=" + AssemblerMk + " " + AssemblerFlags + "\n" | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
+ "CC=${CC:-" + cc + "}\n" + "CFLAGS=${CFLAGS:-" + cflags + "}\n" | + "CC=${CC:-" + CCompiler + "}\n" + "CFLAGS=${CFLAGS:-" + CCompilerFlags + "}\n" | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
+ "Assemble=" + Assemble + "\n" | + "Assemble=" + AssemblerSh + " " + AssemblerFlags + "\n" | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
a = Assemble + " " + fullpath + " -o " + BootDir + "/" + Object | a = AssemblerMk + " " + fullpath + " -o " + BootDir + "/" + Object | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
VmsMake.write("$ " + Assemble + " " + a + "\n") | VmsMake.write("$ " + AssemblerMk + " " + a + "\n") | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32... |
if (Config != "NT386" and not FileExists(from_cm3) | if ( not FileExists(from_cm3) | def _CopyCompiler(From, To): CreateDirectory(To) from_cm3 = os.path.join(From, "cm3") from_cm3exe = os.path.join(From, "cm3.exe") from_cm3cg = os.path.join(From, "cm3cg") from_cm3cgexe = os.path.join(From, "cm3cg.exe") if (Config != "NT386" and not FileExists(from_cm3) and not FileExists(from_cm3exe) and not FileExi... |
if Config != "NT386": | if Config != "NT386" and not Target.endswith("_NT"): | def _CopyCompiler(From, To): CreateDirectory(To) from_cm3 = os.path.join(From, "cm3") from_cm3exe = os.path.join(From, "cm3.exe") from_cm3cg = os.path.join(From, "cm3cg") from_cm3cgexe = os.path.join(From, "cm3cg.exe") if (Config != "NT386" and not FileExists(from_cm3) and not FileExists(from_cm3exe) and not FileExi... |
SystemDrive = os.environ.get("SystemDrive", "") if os.environ.get("OS") == "Windows_NT": HostIsNT = True else: HostIsNT = False | def SetupEnvironment(): SystemDrive = os.environ.get("SystemDrive", "") if os.environ.get("OS") == "Windows_NT": HostIsNT = True else: HostIsNT = False SystemDrive = os.environ.get("SYSTEMDRIVE") if SystemDrive: SystemDrive += os.path.sep # Do this earlier so that its link isn't a problem. # Looking in the registry H... | |
if Target == "NT386" and HostIsNT and Config == "NT386" and (not GCC_BACKEND) and TargetOS == "WIN32": | if IsNativeNTHostTarget(): | def SetupEnvironment(): SystemDrive = os.environ.get("SystemDrive", "") if os.environ.get("OS") == "Windows_NT": HostIsNT = True else: HostIsNT = False SystemDrive = os.environ.get("SYSTEMDRIVE") if SystemDrive: SystemDrive += os.path.sep # Do this earlier so that its link isn't a problem. # Looking in the registry H... |
if Target == "NT386MINGNU" or (Target == "NT386" and GCC_BACKEND and TargetOS == "WIN32"): | if IsMinGWHostTarget(): | def SetupEnvironment(): SystemDrive = os.environ.get("SystemDrive", "") if os.environ.get("OS") == "Windows_NT": HostIsNT = True else: HostIsNT = False SystemDrive = os.environ.get("SYSTEMDRIVE") if SystemDrive: SystemDrive += os.path.sep # Do this earlier so that its link isn't a problem. # Looking in the registry H... |
if Host == "NT386GNU" or (Host == "NT386" and GCC_BACKEND and TargetOS == "POSIX"): | if IsCygwinHostTarget(): | def SetupEnvironment(): SystemDrive = os.environ.get("SystemDrive", "") if os.environ.get("OS") == "Windows_NT": HostIsNT = True else: HostIsNT = False SystemDrive = os.environ.get("SYSTEMDRIVE") if SystemDrive: SystemDrive += os.path.sep # Do this earlier so that its link isn't a problem. # Looking in the registry H... |
CM3_BuildLocal = CM3_BuildLocal or BuildLocal or "%(CM3)s %(CM3_FLAGS)s -build -override %(DEFS)s%(BuildArgs)s" CM3_CleanLocal = CM3_CleanLocal or CleanLocal or "%(CM3)s %(CM3_FLAGS)s -clean -build -override %(DEFS)s%(CleanArgs)s" CM3_BuildGlobal = CM3_BuildGlobal or BuildGlobal or "%(CM3)s %(CM3_FLAGS)s -build %(DEFS)... | Debug = "" CM3_BuildLocal = CM3_BuildLocal or BuildLocal or "%(CM3)s %(CM3_FLAGS)s " + Debug + " -build -override %(DEFS)s%(BuildArgs)s" CM3_CleanLocal = CM3_CleanLocal or CleanLocal or "%(CM3)s %(CM3_FLAGS)s " + Debug + " -clean -build -override %(DEFS)s%(CleanArgs)s" CM3_BuildGlobal = CM3_BuildGlobal or BuildGlobal o... | def ConvertPathForCM3(a): return _ConvertFromCygwinPath(a) |
Link = GnuPlatformPrefix + Link | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = CM3VERSION + "-" + time.strftime("%Y%m%d") # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # p... | |
arch = os.popen("arch -s").read().lower() if arch == "sparc64": | arch = os.popen("arch -s").read() if arch == "sparc64\n": | def GetVersion(Key): # # Only read the file if an environment variable is "missing" (they # usually all are, ok), and only read it once. # #print("WriteVariablesIntoEnvironment:3") Value = Versions.get(Key) if Value: return Value # # CM3VERSION d5.7.1 # CM3VERSIONNUM 050701 # CM3LASTCHANGED 2009-01-21 # RegExp = re.com... |
elif arch == "powerpc": | elif arch == "powerpc\n": | def GetVersion(Key): # # Only read the file if an environment variable is "missing" (they # usually all are, ok), and only read it once. # #print("WriteVariablesIntoEnvironment:3") Value = Versions.get(Key) if Value: return Value # # CM3VERSION d5.7.1 # CM3VERSIONNUM 050701 # CM3LASTCHANGED 2009-01-21 # RegExp = re.com... |
elif arch == "i386": | elif arch == "i386\n": | def GetVersion(Key): # # Only read the file if an environment variable is "missing" (they # usually all are, ok), and only read it once. # #print("WriteVariablesIntoEnvironment:3") Value = Versions.get(Key) if Value: return Value # # CM3VERSION d5.7.1 # CM3VERSIONNUM 050701 # CM3LASTCHANGED 2009-01-21 # RegExp = re.com... |
"cm3", "mklib", "m3cc", "m3core", "libm3", | "cm3", "mklib", "m3core", "libm3", | def _CleanupEnvironment(): # pylib.py figures these out correctly and in particular # their forms have to change if we upgrade from NT386 # to I386_CYGWIN or vice versa; reloading pylib.py # handles that for a in ["M3CONFIG", "CM3_INSTALL", "CM3_ROOT"]: if os.environ.get(a): del(os.environ[a]) |
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) self.questItemIds = range(1632, 1635) + range(1636,1642) + [1622, 1623] def onEvent (self,event,st) : htmltext = event player = st.getPlayer() if event == "30527_1" : if player.getClassId().getId() != 0x35 : if player.getClassId().getId() == 0x38 : ... | def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) self.questItemIds = range(1632, 1635) + range(1636,1642) + [1622, 1623] def onEvent (self,event,st): htmltext = event player = st.getPlayer() if event == "30527_1" : if player.getClassId().getId() != 0x35 : if player.getClassId().getId() == 0x38 : h... | def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) self.questItemIds = range(1632, 1635) + range(1636,1642) + [1622, 1623] |
htmltext = "<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>" | htmltext = Quest.getNoQuestMsg(player) | def onTalk (self, npc, player) : htmltext = "<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>" st = player.getQuestState(qn) if not st : return htmltext |
self.controller.scheduler.pause() | self.controller.scheduler.stop() | def close_dome (self): |
def theor_beta_prod(alpha, n, x): norm = float((alpha + 1) ** n) for i in xrange(1, n): norm /= i return norm * x ** alpha * log(1.0 / x) ** (n - 1) for alpha in [0.2, 1, 2, 4]: for n in [2, 3, 5]: d = BetaDistr(alpha + 1, 1) for i in xrange(n - 1): d *= BetaDistr(alpha + 1, 1) figure() demo_distr(d, theoretical = part... | def theor_quot_power2(a, b, m_plus_1, x): m = m_plus_1 - 1 Ay = m_plus_1**2*x**m / ((b1*b2)**m_plus_1) for a1, b1, a2, b2, m in [(1.1, 4, 1, 3, 1)]: assert a1 >= 0 and a2 >= 0 assert b1 > b2 > a1 > a2 assert b1*b2 > b1*a2 > b2*a1 > a1*a2 m += 1 d1 = FunDistr(lambda x: (m+1)*x / (b1**m_plus_1 - a1**m_plus_1), breakPoin... | def theor_beta_prod(alpha, n, x): norm = float((alpha + 1) ** n) for i in xrange(1, n): norm /= i return norm * x ** alpha * log(1.0 / x) ** (n - 1) |
demo_distr(BetaDistr(alpha + 1, 1) / BetaDistr(alpha + 1, 1), theoretical = partial(theor_quot_power, alpha)) | print d1.summary() d1.plot() | def theor_quot_power(alpha, x): return (x > 0) * (x <= 1) * (alpha + 1.0) / 2 * x**alpha + (x > 1) * (alpha + 1.0) / 2 * x**(-alpha-2) |
headers += ('lum_V') | headers += ('lum_V',) | def weightvecs(m1, x1, m2, x2) : return [(x1[0]*m1 + x2[0]*m2)/(m1+m2), (x1[1]*m1 + x2[1]*m2)/(m1+m2), (x1[2]*m1 + x2[2]*m2)/(m1+m2)] |
def profile(nbins=4, min_radius=0.0534932, bin_type='log', group='All', family='all', center='pot', projection='sph', fit_radius=0., debug_flag = 1) : | def profile(nbins=4, min_radius=0.0534932, bin_type='log', group='All', family='all', center='pot', projection='sph', WRITE_TO = 'profile.DAT', fit_radius=0., debug_flag = 1) : | def profile(nbins=4, min_radius=0.0534932, bin_type='log', group='All', family='all', center='pot', projection='sph', fit_radius=0., debug_flag = 1) : """Perform the Tipsy profile() function. This version implements: linear and logarithmic binning spherical projections base data fields star data fields currently dev... |
WRITE_TO = '../profile.DAT' | def weightvecs(m1, x1, m2, x2) : return [(x1[0]*m1 + x2[0]*m2)/(m1+m2), (x1[1]*m1 + x2[1]*m2)/(m1+m2), (x1[2]*m1 + x2[2]*m2)/(m1+m2)] | |
num = len(p.list) | num = 0 | basereduce = """def localparticle(p): # sum values used for calculation of base fields to get per-bin results bin = p.list[0][0] num = len(p.list) mass = 0. vel_radial = 0. vel_radial_sigma = 0. vel_tang_sigma = 0. ang_mom = [0., 0., 0.] radius = 0. lum = 0. density = 0. temp = 0. pressure = 0. entropy = 0. gas_mass = ... |
for i in range(num) : | for i in range(len(p.list)) : num += p.list[i][1] | basereduce = """def localparticle(p): # sum values used for calculation of base fields to get per-bin results bin = p.list[0][0] num = len(p.list) mass = 0. vel_radial = 0. vel_radial_sigma = 0. vel_tang_sigma = 0. ang_mom = [0., 0., 0.] radius = 0. lum = 0. density = 0. temp = 0. pressure = 0. entropy = 0. gas_mass = ... |
print paragraphs | def format_description(self, description, width=None): # textwrap doesn't allow for a way to preserve double newlines # to separate paragraphs, so we do it here. paragraphs = description.split('\n\n') print paragraphs rets = [] | |
self.debug('parse_args called') | self.debug('called parse_args') | def parse(self, argv): """ Parse the given arguments and act on them. |
print(argc) | def parse_params(): global VERBOSE, QUIET, SHENIDAM, FFMPEG, SHENIDAM_PARAMS, TRANSCODE_BASE, OUTPUT_PATTERN, BASE_FN, AUDIO_EXPORT_PARAMS, AUDIO_REMIX_PARAMS, SHENIDAM_PARAMS, TEMP_DIR, AUDIO_ONLY; argv = sys.argv argc = len(argv) i = 1 print(argc) while i < argc: arg = argv[i].strip() i+=1 if arg == "-v" or arg == "-... | |
print(i) | def parse_params(): global VERBOSE, QUIET, SHENIDAM, FFMPEG, SHENIDAM_PARAMS, TRANSCODE_BASE, OUTPUT_PATTERN, BASE_FN, AUDIO_EXPORT_PARAMS, AUDIO_REMIX_PARAMS, SHENIDAM_PARAMS, TEMP_DIR, AUDIO_ONLY; argv = sys.argv argc = len(argv) i = 1 print(argc) while i < argc: arg = argv[i].strip() i+=1 if arg == "-v" or arg == "-... | |
rospy.loginfo("Waiting for %s_controller init...", component_name) | rospy.loginfo("Initialize <<%s>>", component_name) rospy.loginfo("Waiting for <<%s>> to be initialized...", component_name) | def Init(self,component_name): rospy.loginfo("Waiting for %s_controller init...", component_name) service_name = component_name + "_controller/Init" try: rospy.wait_for_service(service_name,rospy.get_param('server_timeout',1)) except rospy.ROSException, e: print "Service not available: %s"%e return False try: init = ro... |
print init() | init() | def Init(self,component_name): rospy.loginfo("Waiting for %s_controller init...", component_name) service_name = component_name + "_controller/Init" try: rospy.wait_for_service(service_name,rospy.get_param('server_timeout',1)) except rospy.ROSException, e: print "Service not available: %s"%e return False try: init = ro... |
time.sleep(1) | def __init__(self): self.ns_global_prefix = "/script_server" self.move_action_server = actionlib.SimpleActionServer(self.ns_global_prefix, MoveAction, self.execute_cb) time.sleep(1) | |
server_result.return_value = self.sss.move(server_goal.component_name.data,server_goal.parameter_name.data) | handle01 = self.sss.move(server_goal.component_name,server_goal.parameter_name) | def execute_cb(self, server_goal): server_result = MoveActionResult().result server_result.return_value = self.sss.move(server_goal.component_name.data,server_goal.parameter_name.data) if server_result.return_value == 0: print "success" self.move_action_server.set_succeeded(server_result) else: print "error" self.move... |
print "success" | rospy.logdebug("action result success") | def execute_cb(self, server_goal): server_result = MoveActionResult().result server_result.return_value = self.sss.move(server_goal.component_name.data,server_goal.parameter_name.data) if server_result.return_value == 0: print "success" self.move_action_server.set_succeeded(server_result) else: print "error" self.move... |
print "error" | rospy.logerror("action result error") | def execute_cb(self, server_goal): server_result = MoveActionResult().result server_result.return_value = self.sss.move(server_goal.component_name.data,server_goal.parameter_name.data) if server_result.return_value == 0: print "success" self.move_action_server.set_succeeded(server_result) else: print "error" self.move... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.