rem stringlengths 0 322k | add stringlengths 0 2.05M | context stringlengths 8 228k |
|---|---|---|
groupBp = bp(*(args), **kArgs) | def bpGroup(*args, **kArgs): groupBp = bp(*(args), **kArgs) argsCopy = args[:] def functor(*cArgs, **ckArgs): return bp(*(cArgs), **kArgs) return functor | |
return bp(*(cArgs), **kArgs) | kArgs.update(ckArgs) return bp(*(cArgs), **kArgs).maybeBreak(frameCount=kArgs.get('frameCount',1)+1) | def functor(*cArgs, **ckArgs): return bp(*(cArgs), **kArgs) |
TargetAdd('plugin_standalone_panda3dBase.obj', opts=OPTS, input='panda3dBase.cxx') | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | |
error = "requested %s while FSM is in transition from %s to %s." % (request, self.oldState, self.newState) | error = "FSM cannot determine current filter while in transition (%s -> %s)." % (self.oldState, self.newState) | def getCurrentFilter(self): if not self.state: error = "requested %s while FSM is in transition from %s to %s." % (request, self.oldState, self.newState) raise AlreadyInTransition, error |
oscmd("otool -L %s | grep .dylib > %s/tmp/otool-libs.txt" % (libname, VERSION, GetOutputDir()), True) | oscmd("otool -L %s | grep .dylib > %s/tmp/otool-libs.txt" % (libname, GetOutputDir()), True) | def MakeInstallerOSX(): if (RUNTIME): # Invoke the make_installer script. AddToPathEnv("DYLD_LIBRARY_PATH", GetOutputDir() + "/plugins") oscmd(SDK["PYTHONEXEC"] + " direct/src/plugin_installer/make_installer.py --version %s" % VERSION) return import compileall if (os.path.isfile("Panda3D-%s.dmg" % VERSION)): oscmd("rm... |
oscmd("otool -L %s | grep .dylib > %s/tmp/otool-libs.txt" % (binname, VERSION, GetOutputDir()), True) | oscmd("otool -L %s | grep .dylib > %s/tmp/otool-libs.txt" % (binname, GetOutputDir()), True) | def MakeInstallerOSX(): if (RUNTIME): # Invoke the make_installer script. AddToPathEnv("DYLD_LIBRARY_PATH", GetOutputDir() + "/plugins") oscmd(SDK["PYTHONEXEC"] + " direct/src/plugin_installer/make_installer.py --version %s" % VERSION) return import compileall if (os.path.isfile("Panda3D-%s.dmg" % VERSION)): oscmd("rm... |
OPTS=['DIR:direct/src/plugin', 'RUNTIME', 'TINYXML', 'OPENSSL'] | OPTS=['DIR:direct/src/plugin', 'BUILDING:P3D_PLUGIN', 'RUNTIME', 'TINYXML', 'OPENSSL'] | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
OPTS=['DIR:direct/src/plugin_standalone', 'DIR:direct/src/plugin', 'DIR:dtool/src/dtoolbase', 'DIR:dtool/src/dtoolutil', 'DIR:dtool/src/pystub', 'DIR:dtool/src/prc', 'DIR:dtool/src/dconfig', 'DIR:panda/src/express', 'DIR:panda/src/downloader', 'RUNTIME', 'P3DEMBED', 'TINYXML', 'OPENSSL', 'JPEG', 'PNG', 'ZLIB'] DefSymbo... | OPTS=['BUILDING:P3D_PLUGIN', 'DIR:direct/src/plugin_standalone', 'DIR:direct/src/plugin', 'DIR:dtool/src/dtoolbase', 'DIR:dtool/src/dtoolutil', 'DIR:dtool/src/pystub', 'DIR:dtool/src/prc', 'DIR:dtool/src/dconfig', 'DIR:panda/src/express', 'DIR:panda/src/downloader', 'RUNTIME', 'P3DEMBED', 'TINYXML', 'OPENSSL', 'JPEG', ... | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
def flatten(self, newobjModel, objDef, uid): | def flatten(self, newobjModel, model, objDef, uid): | def flatten(self, newobjModel, objDef, uid): # override this to flatten models pass |
self.objects[id][OG.OBJ_NP].removeNode() | try: self.objects[id][OG.OBJ_NP].removeNode() except: pass | def reset(self): base.direct.deselectAllCB() |
self.ui.sceneGraphUI.delete(obj[OG.OBJ_UID]) | oldUIDs.append(obj[OG.OBJ_UID]) | def handleDelete(self): oldSelectedNPs = base.direct.selected.getSelectedAsList() for oldNP in oldSelectedNPs: obj = self.objectMgr.findObjectByNodePath(oldNP) if obj: self.ui.sceneGraphUI.delete(obj[OG.OBJ_UID]) action = ActionDeleteObj(self) self.actionMgr.push(action) action() |
if (COMPILER=="LINUX") and (platform.architecture()[0]=="32bit"): | if (COMPILER=="LINUX") and (platform.architecture()[0]=="32bit" or sys.platform=="darwin"): | def CompileIgate(woutd,wsrc,opts): outbase = os.path.basename(woutd)[:-3] woutc = GetOutputDir()+"/tmp/"+outbase+"_igate.cxx" wobj = FindLocation(outbase + "_igate.obj", []) srcdir = GetValueOption(opts, "SRCDIR:") module = GetValueOption(opts, "IMOD:") library = GetValueOption(opts, "ILIB:") ipath = GetListOption(opts... |
if (sys.platform.startswith("freebsd")): IncDirectory("ALWAYS", "/usr/local/include") LibDirectory("ALWAYS", "/usr/local/lib") | def parseopts(args): global INSTALLER,RTDIST,RUNTIME,GENMAN,DISTRIBUTOR global VERSION,COMPRESSOR,THREADCOUNT,OSXTARGET longopts = [ "help","distributor=","verbose","runtime","osxtarget=", "optimize=","everything","nothing","installer","rtdist","nocolor", "version=","lzma","no-python","threads=","outputdir=","override=... | |
SmartPkgEnable("NPAPI", "", (), ("xulrunner-*/stable", "xulrunner-*/stable/npapi.h", "nspr*/prtypes.h", "nspr*")) | if (sys.platform.startswith("freebsd")): SmartPkgEnable("NPAPI", "", (), ("xulrunner", "nspr*/prtypes.h", "nspr*")) else: SmartPkgEnable("NPAPI", "", (), ("xulrunner-*/stable", "xulrunner-*/stable/npapi.h", "nspr*/prtypes.h", "nspr*")) | def parseopts(args): global INSTALLER,RTDIST,RUNTIME,GENMAN,DISTRIBUTOR global VERSION,COMPRESSOR,THREADCOUNT,OSXTARGET longopts = [ "help","distributor=","verbose","runtime","osxtarget=", "optimize=","everything","nothing","installer","rtdist","nocolor", "version=","lzma","no-python","threads=","outputdir=","override=... |
TargetAdd('pview.exe', opts=['ADVAPI']) | TargetAdd('pview.exe', opts=['ADVAPI', 'WINSOCK2', 'WINSHELL']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
if (GetOptimize() <= 2): dllext = "_d" | if (GetOptimize() <= 2 and sys.platform.startswith("win")): dllext = "_d" | def CalcLocation(fn, ipath): if (fn.count("/")): return fn dllext = "" if (GetOptimize() <= 2): dllext = "_d" if (fn == "PandaModules.py"): return "pandac/" + fn if (fn.endswith(".cxx")): return CxxFindSource(fn, ipath) if (fn.endswith(".I")): return CxxFindSource(fn, ipath) if (fn.endswith(".h")): return CxxFindS... |
if ("MODULE" not in opts): " -Wl,-soname=" + os.path.basename(dll) | if ("MODULE" not in opts): cmd += " -Wl,-soname=" + os.path.basename(dll) | def CompileLink(dll, obj, opts): if (COMPILER=="MSVC"): cmd = "link /nologo" if (platform.architecture()[0] == "64bit"): cmd += " /MACHINE:X64" if ("MFC" not in opts): cmd += " /NOD:MFC90.LIB /NOD:MFC80.LIB /NOD:LIBCMT" cmd += " /NOD:LIBCI.LIB /DEBUG" cmd += " /nod:libc /nod:libcmtd /nod:atlthunk /nod:atls" if (GetOrig... |
Description: The Panda3D free 3D engine Panda3D is a game engine which includes graphics, audio, I/O, collision detection, and other abilities relevant to the creation of 3D games. Panda3D is open source and free software under the revised BSD license, and can be used for both free and commercial game development at no... | Description: The Panda3D free 3D engine SDK Panda3D is a game engine which includes graphics, audio, I/O, collision detection, and other abilities relevant to the creation of 3D games. Panda3D is open source and free software under the revised BSD license, and can be used for both free and commercial game development a... | def MakeInstallerNSIS(file, fullname, smdirectory, installdir): if (os.path.isfile(file)): os.remove(file) elif (os.path.isdir(file)): shutil.rmtree(file) if (RUNTIME): # Invoke the make_installer script. AddToPathEnv("PATH", GetOutputDir() + "\\bin") AddToPathEnv("PATH", GetOutputDir() + "\\plugins") oscmd(SDK["PYTHON... |
Description: The Panda3D free 3D engine This package contains the Panda3D runtime, which is necessary to run p3d files, and the mozilla browser plugin. | Description: Runtime binary and browser plugin for the Panda3D Game Engine This package contains the runtime distribution and browser plugin of the Panda3D engine. It allows you view webpages that contain Panda3D content and to run games created with Panda3D that are packaged as .p3d file. | def MakeInstallerNSIS(file, fullname, smdirectory, installdir): if (os.path.isfile(file)): os.remove(file) elif (os.path.isdir(file)): shutil.rmtree(file) if (RUNTIME): # Invoke the make_installer script. AddToPathEnv("PATH", GetOutputDir() + "\\bin") AddToPathEnv("PATH", GetOutputDir() + "\\plugins") oscmd(SDK["PYTHON... |
Summary: The Panda3D free 3D engine | Summary: The Panda3D free 3D engine SDK | def MakeInstallerNSIS(file, fullname, smdirectory, installdir): if (os.path.isfile(file)): os.remove(file) elif (os.path.isdir(file)): shutil.rmtree(file) if (RUNTIME): # Invoke the make_installer script. AddToPathEnv("PATH", GetOutputDir() + "\\bin") AddToPathEnv("PATH", GetOutputDir() + "\\plugins") oscmd(SDK["PYTHON... |
AutoReqProv: no | def MakeInstallerNSIS(file, fullname, smdirectory, installdir): if (os.path.isfile(file)): os.remove(file) elif (os.path.isdir(file)): shutil.rmtree(file) if (RUNTIME): # Invoke the make_installer script. AddToPathEnv("PATH", GetOutputDir() + "\\bin") AddToPathEnv("PATH", GetOutputDir() + "\\plugins") oscmd(SDK["PYTHON... | |
The Panda3D engine. | Panda3D is a game engine which includes graphics, audio, I/O, collision detection, and other abilities relevant to the creation of 3D games. Panda3D is open source and free software under the revised BSD license, and can be used for both free and commercial game development at no financial cost. Panda3D's intended game... | def MakeInstallerNSIS(file, fullname, smdirectory, installdir): if (os.path.isfile(file)): os.remove(file) elif (os.path.isdir(file)): shutil.rmtree(file) if (RUNTIME): # Invoke the make_installer script. AddToPathEnv("PATH", GetOutputDir() + "\\bin") AddToPathEnv("PATH", GetOutputDir() + "\\plugins") oscmd(SDK["PYTHON... |
/usr/%_lib | /usr/%_lib/panda3d | def MakeInstallerNSIS(file, fullname, smdirectory, installdir): if (os.path.isfile(file)): os.remove(file) elif (os.path.isdir(file)): shutil.rmtree(file) if (RUNTIME): # Invoke the make_installer script. AddToPathEnv("PATH", GetOutputDir() + "\\bin") AddToPathEnv("PATH", GetOutputDir() + "\\plugins") oscmd(SDK["PYTHON... |
txt = INSTALLER_SPEC_FILE[1:].replace("VERSION",VERSION).replace("PANDASOURCE",pandasource).replace("PYTHONV",PYTHONV).replace("PV",PV) | if (RUNTIME): txt = RUNTIME_INSTALLER_SPEC_FILE[1:] else: txt = INSTALLER_SPEC_FILE[1:] txt = txt.replace("VERSION",VERSION).replace("PANDASOURCE",pandasource).replace("PYTHONV",PYTHONV).replace("PV",PV) | def MakeInstallerLinux(): import compileall if RUNTIME: # No worries, it won't be used PYTHONV="python" else: PYTHONV=SDK["PYTHONVERSION"] PV=PYTHONV.replace("python", "") if (os.path.isdir("linuxroot")): oscmd("chmod -R 755 linuxroot") oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec") oscmd("mkdir linu... |
oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .") | if (RUNTIME): oscmd("mv "+ARCH+"/panda3d-runtime-"+VERSION+"-1."+ARCH+".rpm .") else: oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .") | def MakeInstallerLinux(): import compileall if RUNTIME: # No worries, it won't be used PYTHONV="python" else: PYTHONV=SDK["PYTHONVERSION"] PV=PYTHONV.replace("python", "") if (os.path.isdir("linuxroot")): oscmd("chmod -R 755 linuxroot") oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec") oscmd("mkdir linu... |
ARCH=ReadFile(GetOutputDir()+"/tmp/architecture.txt").strip() if RUNTIME: | ARCH = ReadFile(GetOutputDir()+"/tmp/architecture.txt").strip() if (RUNTIME): | def MakeInstallerLinux(): import compileall if RUNTIME: # No worries, it won't be used PYTHONV="python" else: PYTHONV=SDK["PYTHONVERSION"] PV=PYTHONV.replace("python", "") if (os.path.isdir("linuxroot")): oscmd("chmod -R 755 linuxroot") oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec") oscmd("mkdir linu... |
configprc = configprc.replace(".panda3d","Panda3D-%s" % VERSION) | configprc = configprc.replace("$HOME/.panda3d", "$USER_APPDATA/Panda3D-%s" % MAJOR_VERSION) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
configprc = configprc.replace(".panda3d","Library/Caches/Panda3D-%s" % VERSION) | configprc = configprc.replace(".panda3d/cache", "Library/Caches/Panda3D-%s" % MAJOR_VERSION) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
ckArgs.update(kArgs) ckArgs.pop('static', None) ckArgs['frameCount'] = ckArgs.get('frameCount',1)+1 return bpdb.bp(*(cArgs), **ckArgs) | kwArgs = kArgs kwArgs.update(ckArgs) kwArgs.pop('static', None) kwArgs['frameCount'] = ckArgs.get('frameCount',1)+1 return bpdb.bp(*(cArgs), **kwArgs) | def functor(*cArgs, **ckArgs): ckArgs.update(kArgs) ckArgs.pop('static', None) ckArgs['frameCount'] = ckArgs.get('frameCount',1)+1 return bpdb.bp(*(cArgs), **ckArgs) |
if callingModule.__name__ != '__main__': | if callingModule and callingModule.__name__ != '__main__': | def __init__(self, id=None, grp=None, cfg=None, iff=True, frameCount=1): #check early out conditions self.disabled = False if not bpdb.enabled: self.disabled = True return moduleName = None callingModule = inspect.getmodule(inspect.stack()[frameCount][0]) if callingModule.__name__ != '__main__': #get only leaf module ... |
def __init__(self, parent, colourData=None, style=CCD_SHOW_ALPHA, alpha = 255, callback=None): self.callback=callback | def __init__(self, parent, colourData=None, style=CCD_SHOW_ALPHA, alpha = 255, updateCB=None, exitCB=None): self.updateCB=updateCB | def __init__(self, parent, colourData=None, style=CCD_SHOW_ALPHA, alpha = 255, callback=None): self.callback=callback CubeColourDialog.__init__(self, parent, colourData, style) self.okButton.Hide() self.cancelButton.Hide() self._colour.alpha = alpha self.alphaSpin.SetValue(self._colour.alpha) self.DrawAlpha() |
if self.callback: self.callback(self._colour.r, self._colour.g, self._colour.b, self._colour.alpha) | if self.updateCB: self.updateCB(self._colour.r, self._colour.g, self._colour.b, self._colour.alpha) | def SetPanelColours(self): self.oldColourPanel.RefreshColour(self._oldColour) self.newColourPanel.RefreshColour(self._colour) if self.callback: self.callback(self._colour.r, self._colour.g, self._colour.b, self._colour.alpha) |
def colorPickerCB(self, rr, gg, bb, aa): | def colorPickerExitCB(self, evt=None): self.lastColorPickerPos = self.colorPicker.GetPosition() self.colorPicker.Destroy() self.colorPicker = None def colorPickerUpdateCB(self, rr, gg, bb, aa): | def colorPickerCB(self, rr, gg, bb, aa): r = rr / 255.0 g = gg / 255.0 b = bb / 255.0 a = aa / 255.0 self.propCR.setValue(r) self.propCG.setValue(g) self.propCB.setValue(b) self.propCA.setValue(a) |
self.colorPicker = ColorPicker(self, colourData, alpha=alpha, callback=self.colorPickerCB) | self.colorPicker = ColorPicker(self, colourData, alpha=alpha, updateCB=self.colorPickerUpdateCB, exitCB=self.colorPickerExitCB) | def openColorPicker(self, evt, colourData, alpha): if self.colorPicker: self.colorPicker.Destroy() |
obj = self.editor.objectMgr.findObjectByNodePath(self.result) | if self.uid: obj = self.editor.objectMgr.findObjectById(self.uid) else: obj = self.editor.objectMgr.findObjectByNodePath(self.result) | def undo(self): if self.result is None: print "Can't undo this add" else: print "Undo: addNewObject" obj = self.editor.objectMgr.findObjectByNodePath(self.result) if obj: self.uid = obj[OG.OBJ_UID] self.editor.ui.sceneGraphUI.delete(self.uid) base.direct.deselect(self.result) base.direct.removeNodePath(self.result) sel... |
base.direct.deselect(self.result) base.direct.removeNodePath(self.result) | base.direct.deselect(obj[OG.OBJ_NP]) base.direct.removeNodePath(obj[OG.OBJ_NP]) | def undo(self): if self.result is None: print "Can't undo this add" else: print "Undo: addNewObject" obj = self.editor.objectMgr.findObjectByNodePath(self.result) if obj: self.uid = obj[OG.OBJ_UID] self.editor.ui.sceneGraphUI.delete(self.uid) base.direct.deselect(self.result) base.direct.removeNodePath(self.result) sel... |
if name.startswith("thirdparty"): | if name.startswith(GetThirdpartyDir()): | def LibName(opt, name): # Check to see if the lib file actually exists for the thirdparty library given # Are we a thirdparty library? if name.startswith("thirdparty"): # Does this lib exist? if not os.path.exists(name): PkgDisable(opt) WARNINGS.append(name + " not found. Skipping Package " + opt) return LIBNAMES.appe... |
PkgDisable(opt) | def LibName(opt, name): # Check to see if the lib file actually exists for the thirdparty library given # Are we a thirdparty library? if name.startswith("thirdparty"): # Does this lib exist? if not os.path.exists(name): PkgDisable(opt) WARNINGS.append(name + " not found. Skipping Package " + opt) return LIBNAMES.appe... | |
return | if (opt in PkgListGet()): print "%sWARNING:%s Could not locate thirdparty package %s, excluding from build" % (GetColor("red"), GetColor(), opt.lower()) PkgDisable(opt) return else: print "%sERROR:%s Could not locate thirdparty package %s, aborting build" % (GetColor("red"), GetColor(), opt.lower()) exit() | def LibName(opt, name): # Check to see if the lib file actually exists for the thirdparty library given # Are we a thirdparty library? if name.startswith("thirdparty"): # Does this lib exist? if not os.path.exists(name): PkgDisable(opt) WARNINGS.append(name + " not found. Skipping Package " + opt) return LIBNAMES.appe... |
if shortname == '': shortname = appFilename.getBasenameWoExtension() | def usage(code, msg = ''): print >> sys.stderr, usageText % {'prog' : os.path.split(sys.argv[0])[1]} print >> sys.stderr, msg sys.exit(code) | |
html = open(shortname + ".html", "w") html.write("<html>\n") html.write(" <head>\n") html.write(" <title>%s</title>\n" % fullname) html.write(" </head>\n") html.write(" <body>\n") html.write(" <object data=\"%s\" type=\"application/x-panda3d\"></object>\n" % appFilename.getBasename()) html.write(" </body>\n")... | html = open(Filename(outputDir, shortname + ".html").toOsSpecific(), "w") print >>html, "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">" print >>html, "<html xmlns=\"http://www.w3.org/1999/xhtml\">" print >>html, " <head>" print >>html, " ... | def usage(code, msg = ''): print >> sys.stderr, usageText % {'prog' : os.path.split(sys.argv[0])[1]} print >> sys.stderr, msg sys.exit(code) |
LibcDirectory(pkg, SDK[pkg] + "/lib") | LibDirectory(pkg, SDK[pkg] + "/lib") | def parseopts(args): global INSTALLER,RTDIST,RUNTIME,GENMAN,DISTRIBUTOR global VERSION,COMPRESSOR,THREADCOUNT,OSXTARGET,HOST_URL longopts = [ "help","distributor=","verbose","runtime","osxtarget=", "optimize=","everything","nothing","installer","rtdist","nocolor", "version=","lzma","no-python","threads=","outputdir=","... |
MoveAwayConflictingFiles() | MoveBackConflictingFiles() | def exit(msg = ""): sys.stdout.flush() sys.stderr.flush() if (threading.currentThread() == MAINTHREAD): SaveDependencyCache() MoveAwayConflictingFiles() print "Elapsed Time: "+PrettyTime(time.time() - STARTTIME) print msg print GetColor("red") + "Build terminated." + GetColor() sys.stdout.flush() sys.stderr.flush() os.... |
if (res == 11): | sig = res & 0x7F if (GetVerbose() and res != 0): print GetColor("red") + "Process exited with exit status %d and signal code %d" % ((res & 0xFF00) >> 8, sig) + GetColor() if (sig == signal.SIGINT): raise KeyboardInterrupt if (sig == signal.SIGSEGV or res == 35584 or res == 34304): | def oscmd(cmd, ignoreError = False): if VERBOSE: print GetColor("blue") + cmd.split(" ", 1)[0] + " " + GetColor("magenta") + cmd.split(" ", 1)[1] + GetColor() sys.stdout.flush() if sys.platform == "win32": exe = cmd.split()[0] if not (len(exe) > 4 and exe[-4:] == ".exe"): exe += ".exe" if os.path.isfile(exe)==0: for i ... |
SmartPkgEnable("NPAPI", "", (), ("xulrunner", "nspr*/prtypes.h", "nspr*")) | SmartPkgEnable("NPAPI", "mozilla-plugin", (), ("xulrunner", "nspr*/prtypes.h", "nspr*")) | def parseopts(args): global INSTALLER,RTDIST,RUNTIME,GENMAN,DISTRIBUTOR global VERSION,COMPRESSOR,THREADCOUNT,OSXTARGET longopts = [ "help","distributor=","verbose","runtime","osxtarget=", "optimize=","everything","nothing","installer","rtdist","nocolor", "version=","lzma","no-python","threads=","outputdir=","override=... |
SmartPkgEnable("NPAPI", "", (), ("xulrunner-*/stable", "xulrunner-*/stable/npapi.h", "nspr*/prtypes.h", "nspr*")) | SmartPkgEnable("NPAPI", "mozilla-plugin", (), ("xulrunner-*/stable", "xulrunner-*/stable/npapi.h", "nspr*/prtypes.h", "nspr*")) | def parseopts(args): global INSTALLER,RTDIST,RUNTIME,GENMAN,DISTRIBUTOR global VERSION,COMPRESSOR,THREADCOUNT,OSXTARGET longopts = [ "help","distributor=","verbose","runtime","osxtarget=", "optimize=","everything","nothing","installer","rtdist","nocolor", "version=","lzma","no-python","threads=","outputdir=","override=... |
CopyFile(GetOutputDir()+'/lib/panda3d.py', 'direct/src/ffi/panda3d.py') | if (sys.platform.startswith("win")): CopyFile(GetOutputDir()+'/bin/panda3d.py', 'direct/src/ffi/panda3d.py') else: CopyFile(GetOutputDir()+'/lib/panda3d.py', 'direct/src/ffi/panda3d.py') | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
if (RUNTIME and sys.platform.startswith("linux")): | if (RUNTIME and sys.platform != "darwin" and not sys.platform.startswith("win")): | def WriteConfigSettings(): dtool_config={} prc_parameters={} speedtree_parameters={} plugin_config={} if (sys.platform.startswith("win")): for key,win,unix in DTOOL_CONFIG: dtool_config[key] = win for key,win,unix in PRC_PARAMETERS: prc_parameters[key] = win else: for key,win,unix in DTOOL_CONFIG: dtool_config[key] = ... |
if (os.path.exists("/usr/PCBSD")): | if (os.path.isdir("/usr/PCBSD")): | def parseopts(args): global INSTALLER,RTDIST,RUNTIME,GENMAN,DISTRIBUTOR global VERSION,COMPRESSOR,THREADCOUNT,OSXTARGET longopts = [ "help","distributor=","verbose","runtime","osxtarget=", "optimize=","everything","nothing","installer","rtdist","nocolor", "version=","lzma","no-python","threads=","outputdir=","override=... |
if (os.path.exists("/usr/lib64")): | if (os.path.isdir("/usr/lib64/glib-2.0/include")): | def parseopts(args): global INSTALLER,RTDIST,RUNTIME,GENMAN,DISTRIBUTOR global VERSION,COMPRESSOR,THREADCOUNT,OSXTARGET longopts = [ "help","distributor=","verbose","runtime","osxtarget=", "optimize=","everything","nothing","installer","rtdist","nocolor", "version=","lzma","no-python","threads=","outputdir=","override=... |
VC80CRTASSEMBLYRE=re.compile("<dependency>[\t \n]*<dependentAssembly>[\t \n]*<assemblyIdentity[\t \na-zA-Z0-9.'\"=]*name=['\"]Microsoft[.]VC80[.]CRT['\"][\t \na-zA-Z0-9.'\"=/]*>[\t \n]*(</assemblyIdentity>)?[\t \n]*</dependentAssembly>[\t \n]*</dependency>[\t \n]*") | VC80CRTASSEMBLYRE=re.compile("<dependency>[\t \r\n]*<dependentAssembly>[\t \r\n]*<assemblyIdentity[\t \r\na-zA-Z0-9.'\"=]*name=['\"]Microsoft[.]VC80[.]CRT['\"][\t \r\na-zA-Z0-9.'\"=/]*>[\t \r\n]*(</assemblyIdentity>)?[\t \r\n]*</dependentAssembly>[\t \r\n]*</dependency>[\t \r\n]*") | def GetThirdpartyDir(): global THIRDPARTYDIR if (THIRDPARTYDIR != None): return THIRDPARTYDIR if (sys.platform.startswith("win")): if (platform.architecture()[0] == "64bit"): THIRDPARTYDIR="thirdparty/win-libs-vc9-x64/" else: THIRDPARTYDIR="thirdparty/win-libs-vc9/" if not os.path.isdir(THIRDPARTYDIR): THIRDPARTYDIR="t... |
self.pixel2d.setScale(2.0 / xsize, 1.0, 2.0 / ysize) | if xsize > 0 and ysize > 0: self.pixel2d.setScale(2.0 / xsize, 1.0, 2.0 / ysize) | def setupRender2d(self): """ Creates the render2d scene graph, the primary scene graph for 2-d objects and gui elements that are superimposed over the 3-d geometry in the window. """ self.render2d = NodePath('render2d') |
self.pixel2dp.setScale(2.0 / xsize, 1.0, 2.0 / ysize) | if xsize > 0 and ysize > 0: self.pixel2dp.setScale(2.0 / xsize, 1.0, 2.0 / ysize) | def setupRender2dp(self): """ Creates a render2d scene graph, the secondary scene graph for 2-d objects and gui elements that are superimposed over the 2-d and 3-d geometry in the window. """ self.render2dp = NodePath('render2dp') |
self.pixel2d.setScale(2.0 / win.getXSize(), 1.0, 2.0 / win.getYSize()) self.pixel2dp.setScale(2.0 / win.getXSize(), 1.0, 2.0 / win.getYSize()) | if win.getXSize() > 0 and win.getYSize() > 0: self.pixel2d.setScale(2.0 / win.getXSize(), 1.0, 2.0 / win.getYSize()) self.pixel2dp.setScale(2.0 / win.getXSize(), 1.0, 2.0 / win.getYSize()) | def windowEvent(self, win): if win == self.win: properties = win.getProperties() self.notify.info("Got window event: %s" % (repr(properties))) if not properties.getOpen(): # If the user closes the main window, we should exit. self.notify.info("User closed main window.") if __dev__ and (not config.GetBool('disable-garba... |
objNP = obj[OG.OBJ_NP] | def restoreObject(uid, parentNP): obj = self.objInfos[uid] objNP = obj[OG.OBJ_NP] objDef = obj[OG.OBJ_DEF] objModel = obj[OG.OBJ_MODEL] objProp = obj[OG.OBJ_PROP] objRGBA = obj[OG.OBJ_RGBA] self.editor.objectMgr.addNewObject(objDef.name, uid, obj[OG.OBJ_MODEL], parentNP) self.editor.objectMgr.updateObjectColor(objRGBA[... | |
self.editor.objectMgr.addNewObject(objDef.name, | objNP = self.editor.objectMgr.addNewObject(objDef.name, | def restoreObject(uid, parentNP): obj = self.objInfos[uid] objNP = obj[OG.OBJ_NP] objDef = obj[OG.OBJ_DEF] objModel = obj[OG.OBJ_MODEL] objProp = obj[OG.OBJ_PROP] objRGBA = obj[OG.OBJ_RGBA] self.editor.objectMgr.addNewObject(objDef.name, uid, obj[OG.OBJ_MODEL], parentNP) self.editor.objectMgr.updateObjectColor(objRGBA[... |
print file.filename, filenames | def __addImplicitDependenciesWindows(self): """ Walks through the list of files, looking for dll's and exe's that might include implicit dependencies on other dll's and assembly manifests. Tries to determine those dependencies, and adds them back into the filelist. """ | |
def bp(id=None, grp=None, cfg=None, iff=True, frameCount=1): | def bp(id=None, grp=None, cfg=None, iff=True, test=None, frameCount=1): | def bp(id=None, grp=None, cfg=None, iff=True, frameCount=1): if not bpdb.enabled or not bpdb.verifyEnabled(): return bpi = bp(id=id, grp=grp, cfg=cfg, iff=iff,frameCount=frameCount+1) bpi.maybeBreak(frameCount=frameCount+1) |
bpi = bp(id=id, grp=grp, cfg=cfg, iff=iff,frameCount=frameCount+1) bpi.maybeBreak(frameCount=frameCount+1) | bpi = bp(id=id, grp=grp, cfg=cfg, iff=iff, frameCount=frameCount+1) bpi.maybeBreak(test=test, frameCount=frameCount+1) | def bp(id=None, grp=None, cfg=None, iff=True, frameCount=1): if not bpdb.enabled or not bpdb.verifyEnabled(): return bpi = bp(id=id, grp=grp, cfg=cfg, iff=iff,frameCount=frameCount+1) bpi.maybeBreak(frameCount=frameCount+1) |
def bpCall(id=None,grp=None,cfg=None,iff=True,frameCount=1,onEnter=1,onExit=0): | def bpCall(id=None,grp=None,cfg=None,iff=True,test=None,frameCount=1,onEnter=1,onExit=0): | def bpCall(id=None,grp=None,cfg=None,iff=True,frameCount=1,onEnter=1,onExit=0): def decorator(f): return f |
dbp.maybeBreak(iff=iff,frameCount=frameCount+1,displayPrefix='Calling ') | dbp.maybeBreak(iff=iff,test=test,frameCount=frameCount+1,displayPrefix='Calling ') | def wrap(*args, **kwds): #create our bp object dbp = bp(id=id or f.__name__, grp=bpi.grp, cfg=bpi.cfg, iff=iff, frameCount=frameCount+1) if onEnter: dbp.maybeBreak(iff=iff,frameCount=frameCount+1,displayPrefix='Calling ') f_result = f(*args, **kwds) if onExit: dbp.maybeBreak(iff=iff,frameCount=frameCount+1,displayPrefi... |
dbp.maybeBreak(iff=iff,frameCount=frameCount+1,displayPrefix='Exited ') | dbp.maybeBreak(iff=iff,test=test,frameCount=frameCount+1,displayPrefix='Exited ') | def wrap(*args, **kwds): #create our bp object dbp = bp(id=id or f.__name__, grp=bpi.grp, cfg=bpi.cfg, iff=iff, frameCount=frameCount+1) if onEnter: dbp.maybeBreak(iff=iff,frameCount=frameCount+1,displayPrefix='Calling ') f_result = f(*args, **kwds) if onExit: dbp.maybeBreak(iff=iff,frameCount=frameCount+1,displayPrefi... |
if not bpdb.enabled or not bpdb.verifyEnabled(): | def functor(*cArgs, **ckArgs): return if bpdb.enabled and bpdb.verifyEnabled(): argsCopy = args[:] | def bpGroup(*args, **kArgs): if not bpdb.enabled or not bpdb.verifyEnabled(): def functor(*cArgs, **ckArgs): return return functor argsCopy = args[:] def functor(*cArgs, **ckArgs): kwArgs = kArgs kwArgs.update(ckArgs) kwArgs.pop('static', None) kwArgs['frameCount'] = ckArgs.get('frameCount',1)+1 return bpdb.bp(*(cArgs... |
return return functor argsCopy = args[:] def functor(*cArgs, **ckArgs): kwArgs = kArgs kwArgs.update(ckArgs) kwArgs.pop('static', None) kwArgs['frameCount'] = ckArgs.get('frameCount',1)+1 return bpdb.bp(*(cArgs), **kwArgs) | kwArgs = kArgs kwArgs.update(ckArgs) kwArgs.pop('static', None) kwArgs['frameCount'] = ckArgs.get('frameCount',1)+1 return bpdb.bp(*(cArgs), **kwArgs) | def functor(*cArgs, **ckArgs): return |
def maybeBreak(self, iff=True, frameCount=1,displayPrefix=''): if self.shouldBreak(iff): | def maybeBreak(self, iff=True, test=None, frameCount=1, displayPrefix=''): if self.shouldBreak(iff=iff, test=test): | def maybeBreak(self, iff=True, frameCount=1,displayPrefix=''): if self.shouldBreak(iff): self.doBreak(frameCount=frameCount+1,displayPrefix=displayPrefix) |
def shouldBreak(self,iff=True): | def shouldBreak(self,iff=True, test=None): | def shouldBreak(self,iff=True): #check easy early out if self.disabled: return False if not self.iff or not iff: return False |
OPTS=['DIR:panda/src/downloadertools', 'OPENSSL', 'ZLIB', 'ADVAPI'] | OPTS=['DIR:panda/src/downloadertools', 'OPENSSL', 'ZLIB', 'ADVAPI', 'WINSOCK2', 'WINSHELL'] | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
OPTS=['DIR:panda/src/downloadertools', 'ZLIB', 'OPENSSL', 'ADVAPI'] | OPTS=['DIR:panda/src/downloadertools', 'ZLIB', 'OPENSSL', 'ADVAPI', 'WINSOCK2', 'WINSHELL'] | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
elif (sys.platform == "darwin"): SDK["PYTHON"] = sysconfig.get_python_inc() SDK["PYTHONVERSION"] = "python" + sysconfig.get_python_version() SDK["PYTHONEXEC"] = sys.executable | def SdkLocatePython(force_use_sys_executable = False): if (PkgSkip("PYTHON")==0): if (sys.platform == "win32" and not force_use_sys_executable): SDK["PYTHON"] = "thirdparty/win-python" if (GetOptimize() <= 2): SDK["PYTHON"] += "-dbg" if (platform.architecture()[0] == "64bit" and os.path.isdir(SDK["PYTHON"] + "-x64")): ... | |
SDK["PYTHONEXEC"] = os.path.join(os.path.dirname(sys.executable), os.readlink(sys.executable)) | if (os.path.islink(sys.executable)): SDK["PYTHONEXEC"] = os.path.join(os.path.dirname(sys.executable), os.readlink(sys.executable)) else: SDK["PYTHONEXEC"] = sys.executable | def SdkLocatePython(force_use_sys_executable = False): if (PkgSkip("PYTHON")==0): if (sys.platform == "win32" and not force_use_sys_executable): SDK["PYTHON"] = "thirdparty/win-python" if (GetOptimize() <= 2): SDK["PYTHON"] += "-dbg" if (platform.architecture()[0] == "64bit" and os.path.isdir(SDK["PYTHON"] + "-x64")): ... |
TargetAdd('interrogate.exe', opts=['ADVAPI', 'OPENSSL']) | TargetAdd('interrogate.exe', opts=['ADVAPI', 'OPENSSL', 'WINSHELL']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
TargetAdd('interrogate_module.exe', opts=['ADVAPI', 'OPENSSL']) | TargetAdd('interrogate_module.exe', opts=['ADVAPI', 'OPENSSL', 'WINSHELL']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
TargetAdd('parse_file.exe', opts=['ADVAPI', 'OPENSSL']) | TargetAdd('parse_file.exe', opts=['ADVAPI', 'OPENSSL', 'WINSHELL']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
TargetAdd('make-prc-key.exe', opts=['ADVAPI', 'OPENSSL']) | TargetAdd('make-prc-key.exe', opts=['ADVAPI', 'OPENSSL', 'WINSHELL']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
TargetAdd('test_interrogate.exe', opts=['ADVAPI', 'OPENSSL']) | TargetAdd('test_interrogate.exe', opts=['ADVAPI', 'OPENSSL', 'WINSHELL']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
TargetAdd('p3dWrapper.exe', opts=OPTS, input='p3dWrapper.c') | TargetAdd('p3dWrapper.obj', opts=OPTS, input='p3dWrapper.c') TargetAdd('p3dWrapper.exe', input='p3dWrapper.obj') | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
WriteFile("dstroot/pythoncode/Library/Python/%s/Panda3D.pth" % PV, "/Developer/Panda3D/lib") | WriteFile("dstroot/pythoncode/Library/Python/%s/site-packages/Panda3D.pth" % PV, "/Developer/Panda3D/lib") | def MakeInstallerOSX(): if (RUNTIME): # Invoke the make_installer script. AddToPathEnv("DYLD_LIBRARY_PATH", GetOutputDir() + "/plugins") oscmd(SDK["PYTHONEXEC"] + " direct/src/plugin_installer/make_installer.py --version %s" % VERSION) return import compileall if (os.path.isfile("Panda3D-%s.dmg" % VERSION)): oscmd("rm... |
deleteTemp = True, explicit = True, extract = True) | explicit = True, extract = True) | def do_mainModule(self, moduleName, newName = None, filename = None): """ Names the indicated module as the "main" module of the application or exe. """ |
if (PkgSkip("PYTHON")==0): | if (PkgSkip("PYTHON")==0 and not RUNTIME): | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
TargetAdd('PandaModules.py', input='libp3awesomium.dll') | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | |
print >>controlfile, "Depends: libc6, libgcc1, libstdc++6, libx11-6 libssl0.9.8" | print >>controlfile, "Depends: libc6, libgcc1, libstdc++6, libx11-6, libssl0.9.8" | def buildDEB(self, output, platform): """ Builds a .deb archive and stores it in the path indicated by the 'output' argument. It will be built for the architecture specified by the 'arch' argument. If 'output' is a directory, the deb file will be stored in it. """ arch = platform.rsplit("_", 1)[-1] output = Filename(o... |
TargetAdd('PandaModules.py', input='libp3direct.dll') | if (PkgSkip("DIRECT")==0): TargetAdd('PandaModules.py', input='libp3direct.dll') | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" |
if (DEBVERSION is None): DEBVERSION = VERSION | def parseopts(args): global INSTALLER,RTDIST,RUNTIME,GENMAN,DISTRIBUTOR,VERSION global COMPRESSOR,THREADCOUNT,OSXTARGET,HOST_URL,DEBVERSION longopts = [ "help","distributor=","verbose","runtime","osxtarget=", "optimize=","everything","nothing","installer","rtdist","nocolor", "version=","lzma","no-python","threads=","ou... | |
if (VERSION == None): | if (VERSION is None): | def parseopts(args): global INSTALLER,RTDIST,RUNTIME,GENMAN,DISTRIBUTOR,VERSION global COMPRESSOR,THREADCOUNT,OSXTARGET,HOST_URL,DEBVERSION longopts = [ "help","distributor=","verbose","runtime","osxtarget=", "optimize=","everything","nothing","installer","rtdist","nocolor", "version=","lzma","no-python","threads=","ou... |
if (COREAPI_VERSION == None): | if (COREAPI_VERSION is None): | def parseopts(args): global INSTALLER,RTDIST,RUNTIME,GENMAN,DISTRIBUTOR,VERSION global COMPRESSOR,THREADCOUNT,OSXTARGET,HOST_URL,DEBVERSION longopts = [ "help","distributor=","verbose","runtime","osxtarget=", "optimize=","everything","nothing","installer","rtdist","nocolor", "version=","lzma","no-python","threads=","ou... |
base.direct.widget.disableModeColor() | base.direct.widget.disabledModeColor() | def disableWidgetMove(self): self.fMovable = 0 if hasattr(base.direct, 'widget'): base.direct.widget.disableModeColor() else: self.objectHandles.disabledModeColor() |
for item in parseManualTOC("manual/index.html"): | for item in parseManualTOC(dirname + "/index.html"): | def makeCHM(outputfile, dirname, title, special = None): """Creates a CHM file based on a directory of HTML files. See the top of this file for more info.""" assert special == None or special in ["manual", "reference"] reference = (special == "reference") manual = (special == "manual") base = ireplace(outputfile, ".chm... |
if os.path.isdir("C:\Program Files\HTML Help Workshop"): cmd = "\"C:\Program Files\HTML Help Workshop\hhc.exe\" %s.hhp" % base | if "PROGRAMFILES" in os.environ and os.path.isdir("%s\\HTML Help Workshop" % os.environ["PROGRAMFILES"]): cmd = "\"%s\\HTML Help Workshop\\hhc.exe\" %s.hhp" % (os.environ["PROGRAMFILES"], base) elif os.path.isdir("C:\Program Files\HTML Help Workshop"): cmd = "\"C:\\Program Files\\HTML Help Workshop\\hhc.exe\" %s.hhp" %... | def makeCHM(outputfile, dirname, title, special = None): """Creates a CHM file based on a directory of HTML files. See the top of this file for more info.""" assert special == None or special in ["manual", "reference"] reference = (special == "reference") manual = (special == "manual") base = ireplace(outputfile, ".chm... |
if not os.path.isdir("manual"): print "No directory named 'manual' found" else: print "Making CHM file for manual..." if VERSION == None: makeManualCHM("manual.chm", "manual", "Panda3D Manual") | for lang in ["python", "cxx"]: if not os.path.isdir("manual-" + lang): print "No directory named 'manual-%s' found" % lang | def makeReferenceCHM(outputfile, dirname, title): """Same as makeCHM, but converts a structure resembling that of the Panda3D reference.""" return makeCHM(outputfile, dirname, title, special = "reference") |
makeManualCHM("manual-%s.chm" % VERSION, "manual", "Panda3D %s Manual" % VERSION) if not os.path.isdir("reference"): print "No directory named 'reference' found" else: print "Making CHM file for API reference..." if VERSION == None: makeReferenceCHM("reference.chm", "reference", "Panda3D Reference") | print "Making CHM file for manual-%s..." % lang if VERSION == None: makeManualCHM("manual-%s.chm" % lang, "manual-" + lang, "Panda3D Manual") else: makeManualCHM("manual-%s-%s.chm" % (VERSION, lang), "manual-" + lang, "Panda3D %s Manual" % VERSION) if not os.path.isdir("reference-" + lang): print "No directory named '... | def makeReferenceCHM(outputfile, dirname, title): """Same as makeCHM, but converts a structure resembling that of the Panda3D reference.""" return makeCHM(outputfile, dirname, title, special = "reference") |
makeReferenceCHM("reference-%s.chm" % VERSION, "reference", "Panda3D %s Reference" % VERSION) | print "Making CHM file for reference-%s..." % lang if VERSION == None: makeReferenceCHM("reference-%s.chm" % lang, "reference-" + lang, "Panda3D Reference") else: makeReferenceCHM("reference-%s-%s.chm" % (VERSION, lang), "reference-" + lang, "Panda3D %s Reference" % VERSION) | def makeReferenceCHM(outputfile, dirname, title): """Same as makeCHM, but converts a structure resembling that of the Panda3D reference.""" return makeCHM(outputfile, dirname, title, special = "reference") |
cmd = '/Developer/usr/bin/packagemaker -build -f dstroot/' + pkg + '/ -p dstroot/Panda3D/Panda3D.mpkg/Contents/Packages/' + pkg + '.pkg -i /tmp/Info_plist' | cmd = '/Developer/Tools/packagemaker -build -f dstroot/' + pkg + '/ -p dstroot/Panda3D/Panda3D.mpkg/Contents/Packages/' + pkg + '.pkg -i /tmp/Info_plist' | def MakeInstallerOSX(): if (RUNTIME): # Invoke the make_installer script. AddToPathEnv("DYLD_LIBRARY_PATH", GetOutputDir() + "/plugins") oscmd(SDK["PYTHONEXEC"] + " direct/src/plugin_installer/make_installer.py --version %s" % VERSION) return import compileall if (os.path.isfile("Panda3D-%s.dmg" % VERSION)): oscmd("rm... |
itemId = itemText[1] | itemId = itemText[-1] | def changeHierarchy(self, data, x, y): itemText = data.split('_') itemId = itemText[1] parent = self.tree.GetRootItem() item = self.traverse(parent, itemId) if item is None: return |
self.Bind(wx.EVT_MENU, lambda p0=None, p1=2:self.onViewChage(p0, p1), menuItem) | self.Bind(wx.EVT_MENU, lambda p0=None, p1=2:self.onViewChange(p0, p1), menuItem) | def createMenu(self): menuItem = self.menuFile.Insert(0, ID_NEW, self.MENU_TEXTS[ID_NEW][0]) self.Bind(wx.EVT_MENU, self.onNew, menuItem) menuItem = self.menuFile.Insert(1, ID_OPEN, self.MENU_TEXTS[ID_OPEN][0]) self.Bind(wx.EVT_MENU, self.onOpen, menuItem) |
if not depassembly: continue | if depassembly: ident = assembly.FirstChildElement("assemblyIdentity") if ident: name = ident.Attribute("name") if name: filenames.append(name + ".manifest") | def __parseManifest(self, tempFile): """ Reads the indicated application manifest file, to determine the list of dependent assemblies this executable file depends on. """ |
ident = assembly.FirstChildElement("assemblyIdentity") if ident: name = ident.Attribute("name") if name: filenames.append(name + ".manifest") | def __parseManifest(self, tempFile): """ Reads the indicated application manifest file, to determine the list of dependent assemblies this executable file depends on. """ | |
Window.close(self) | wx.Window.Close(self) base.closeWindow(self.win) | def close(self): """Closes the viewport.""" if self.initialized: Window.close(self) ViewportManager.viewports.remove(self) |
self.editor.objectMgr.updateObjectColor(objRGBA[0], objRGBA[1], objRGBA[2], objRGBA[3], uid) self.editor.objectMgr.updateObjectProperties(uid, objProp) | self.editor.objectMgr.updateObjectColor(objRGBA[0], objRGBA[1], objRGBA[2], objRGBA[3], objNP) self.editor.objectMgr.updateObjectProperties(objNP, objProp) | def restoreObject(uid, parentNP): obj = self.objInfos[uid] objDef = obj[OG.OBJ_DEF] objModel = obj[OG.OBJ_MODEL] objProp = obj[OG.OBJ_PROP] objRGBA = obj[OG.OBJ_RGBA] objNP = self.editor.objectMgr.addNewObject(objDef.name, uid, obj[OG.OBJ_MODEL], parentNP) self.editor.objectMgr.updateObjectColor(objRGBA[0], objRGBA[1],... |
print os.popen("ps -o pid,command").read() | print os.popen("ps -o pid,command 2> /dev/null").read() | def test_setproctitle(self): """setproctitle() can set the process title, duh.""" rv = self.run_script(r""" import setproctitle setproctitle.setproctitle('Hello, world!') import os print os.getpid() print os.popen("ps -o pid,command").read() """) lines = filter(None, rv.splitlines()) pid = lines.pop(0) pids = dict([r.... |
snowman = u'\u2603' sm2 = r'\M-b\M^X\M^C' | snowmen = [ u'\u2603', r'\M-b\M^X\M^C', r'M-bM^XM^C', ] | def test_unicode(self): """Title can contain unicode characters.""" if 'utf-8' != sys.getdefaultencoding(): raise SkipTest("encoding '%s' can't deal with snowmen" % sys.getdefaultencoding()) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.