rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
OPTS=['DIR:panda/metalibs/pandagl', 'BUILDING:PANDAGLUT', 'OPENGL', 'NVIDIACG', 'CGGL'] | OPTS=['DIR:panda/metalibs/pandagl', 'BUILDING:PANDAGLUT', 'GL', 'NVIDIACG', 'CGGL'] | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61/makepanda.py |
TargetAdd('libpandagl.dll', opts=['MODULE', 'OPENGL', 'NVIDIACG', 'CGGL', 'CARBON', 'AGL', 'COCOA']) | TargetAdd('libpandagl.dll', opts=['MODULE', 'GL', 'NVIDIACG', 'CGGL', 'CARBON', 'AGL', 'COCOA']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61/makepanda.py |
if (sys.platform == "win32" and PkgSkip("OPENGL")==0 and not RUNTIME): | if (sys.platform == "win32" and PkgSkip("GL")==0 and not RUNTIME): | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61/makepanda.py |
TargetAdd('libpandagl.dll', opts=['MODULE', 'WINGDI', 'OPENGL', 'WINKERNEL', 'WINOLDNAMES', 'WINUSER', 'WINMM', 'NVIDIACG', 'CGGL']) | TargetAdd('libpandagl.dll', opts=['MODULE', 'WINGDI', 'GL', 'WINKERNEL', 'WINOLDNAMES', 'WINUSER', 'WINMM', 'NVIDIACG', 'CGGL']) if (PkgSkip("EGL")==0 and PkgSkip("GLES")==0 and PkgSkip("X11")==0 and not RUNTIME): DefSymbol('GLES', 'OPENGLES_1', '') OPTS=['DIR:panda/src/egldisplay', 'DIR:panda/src/glstuff', 'BUIL... | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61/makepanda.py |
TargetAdd('libpandaspeedtree.dll', opts=['OPENGL', 'NVIDIACG', 'CGGL']) | TargetAdd('libpandaspeedtree.dll', opts=['GL', 'NVIDIACG', 'CGGL']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61/makepanda.py |
self.host = HostInfo(PandaSystem.getPackageHostUrl(), hostDir = hostDir, asMirror = False, perPlatform = True) | self.host = HostInfo(PandaSystem.getPackageHostUrl(), appRunner = base.appRunner, hostDir = hostDir, asMirror = False, perPlatform = True) | def __init__(self, p3dfile, tokens = {}): self.p3dfile = Filename(p3dfile) self.basename = self.p3dfile.getBasenameWoExtension() self.tokens = tokens hostDir = Filename(Filename.getTempDirectory(), 'pdeploy/') hostDir.makeDir() self.host = HostInfo(PandaSystem.getPackageHostUrl(), hostDir = hostDir, asMirror = False, ... | eee5764b820c84b961f87bb95f693f2e00cf6ee6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/eee5764b820c84b961f87bb95f693f2e00cf6ee6/DeploymentTools.py |
host = HostInfo(self.hostUrl, rootDir = rootDir, asMirror = True, perPlatform = False) | host = HostInfo(self.hostUrl, appRunner = base.appRunner, rootDir = rootDir, asMirror = True, perPlatform = False) | def installPackagesInto(self, rootDir, platform): """ Installs the packages required by the .p3d file into the specified root directory, for the given platform. """ if not self.includeRequires: return host = HostInfo(self.hostUrl, rootDir = rootDir, asMirror = True, perPlatform = False) if not host.readContentsFile()... | eee5764b820c84b961f87bb95f693f2e00cf6ee6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/eee5764b820c84b961f87bb95f693f2e00cf6ee6/DeploymentTools.py |
host = HostInfo(self.standalone.host.hostUrl, rootDir = rootDir, asMirror = False, perPlatform = False) | host = HostInfo(self.standalone.host.hostUrl, appRunner = base.appRunner, rootDir = rootDir, asMirror = False, perPlatform = False) | def installPackagesInto(self, rootDir, platform): """ Installs the packages required by the .p3d file into the specified root directory, for the given platform. """ if not self.includeRequires: return host = HostInfo(self.hostUrl, rootDir = rootDir, asMirror = True, perPlatform = False) if not host.readContentsFile()... | eee5764b820c84b961f87bb95f693f2e00cf6ee6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/eee5764b820c84b961f87bb95f693f2e00cf6ee6/DeploymentTools.py |
for vfile in vfs.scanDirectory(self.pathname): | files = vfs.scanDirectory(self.pathname) if files is None: files = [] for vfile in files: | def __init__(self, pathname, ignoreUsageXml = False): self.pathname = pathname self.filenames = [] self.fileSize = 0 self.nested = [] self.nestedSize = 0 | 544b1009081ffd22282a04856ff4ef7184fac46c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/544b1009081ffd22282a04856ff4ef7184fac46c/ScanDirectoryNode.py |
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) | ab8123dc6883b0e80561ab2c8671635288ded6bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/ab8123dc6883b0e80561ab2c8671635288ded6bb/pdeploy.py | |
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) | ab8123dc6883b0e80561ab2c8671635288ded6bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/ab8123dc6883b0e80561ab2c8671635288ded6bb/pdeploy.py |
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] = ... | 97022c2df0e2f8c4658382a87d353379239deaa5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/97022c2df0e2f8c4658382a87d353379239deaa5/makepanda.py | ||
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] = ... | 97022c2df0e2f8c4658382a87d353379239deaa5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/97022c2df0e2f8c4658382a87d353379239deaa5/makepanda.py |
PPATH=get_python_lib(1) PEXEC=os.path.join(os.path.dirname(sys.executable), os.readlink(sys.executable)) | PPATH = get_python_lib(1) if os.path.islink(sys.executable): PEXEC = os.path.join(os.path.dirname(sys.executable), os.readlink(sys.executable)) else: PEXEC = sys.executable | def InstallPanda(destdir="", prefix="/usr", outputdir="built"): if (not prefix.startswith("/")): prefix = "/" + prefix PPATH=get_python_lib(1) PEXEC=os.path.join(os.path.dirname(sys.executable), os.readlink(sys.executable)) oscmd("mkdir -p "+destdir+prefix+"/bin") oscmd("mkdir -p "+destdir+prefix+"/include") oscmd("mkd... | 52013f0065b75baaa53a9cb57ccaa8fd057d171f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/52013f0065b75baaa53a9cb57ccaa8fd057d171f/installpanda.py |
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=... | e7285a993fca5c5591de0d7c2cba82a05af9d831 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/e7285a993fca5c5591de0d7c2cba82a05af9d831/makepanda.py |
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=... | e7285a993fca5c5591de0d7c2cba82a05af9d831 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/e7285a993fca5c5591de0d7c2cba82a05af9d831/makepanda.py |
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],... | 1708bea71b6113725de1ca483849143955e2fde9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/1708bea71b6113725de1ca483849143955e2fde9/ActionMgr.py |
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],... | 1708bea71b6113725de1ca483849143955e2fde9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/1708bea71b6113725de1ca483849143955e2fde9/ActionMgr.py |
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() | ce084c9a02b467ea99236001edc89ea34f9a81f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/ce084c9a02b467ea99236001edc89ea34f9a81f0/ObjectPropertyUI.py |
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) | ce084c9a02b467ea99236001edc89ea34f9a81f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/ce084c9a02b467ea99236001edc89ea34f9a81f0/ObjectPropertyUI.py |
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) | ce084c9a02b467ea99236001edc89ea34f9a81f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/ce084c9a02b467ea99236001edc89ea34f9a81f0/ObjectPropertyUI.py |
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() | ce084c9a02b467ea99236001edc89ea34f9a81f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/ce084c9a02b467ea99236001edc89ea34f9a81f0/ObjectPropertyUI.py |
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... | 938d5fb27cb8556ba127d150eee7cb0366d92e60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/938d5fb27cb8556ba127d150eee7cb0366d92e60/ActionMgr.py |
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... | 938d5fb27cb8556ba127d150eee7cb0366d92e60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/938d5fb27cb8556ba127d150eee7cb0366d92e60/ActionMgr.py |
cmd += " -arch x86_64 -arch i386" | cmd += " -arch i386" | def CompileCxx(obj,src,opts): ipath = GetListOption(opts, "DIR:") if (COMPILER=="MSVC"): cmd = "cl " if (platform.architecture()[0]=="64bit"): cmd += "/favor:blend " cmd += "/wd4996 /wd4275 /wd4267 /wd4101 /wd4273 /Fo" + obj + " /nologo /c" for x in ipath: cmd += " /I" + x for (opt,dir) in INCDIRECTORIES: if (opt=="ALW... | a2590eaee40bfb5c1b926406631f7c04be2f691f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/a2590eaee40bfb5c1b926406631f7c04be2f691f/makepanda.py |
if (COMPILER=="LINUX") and (platform.architecture()[0]=="64bit"): | if (COMPILER=="LINUX") and (platform.architecture()[0]=="64bit") and (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... | a2590eaee40bfb5c1b926406631f7c04be2f691f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/a2590eaee40bfb5c1b926406631f7c04be2f691f/makepanda.py |
cmd += " -arch x86_64 -arch i386" | cmd += " -arch i386" | 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... | a2590eaee40bfb5c1b926406631f7c04be2f691f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/a2590eaee40bfb5c1b926406631f7c04be2f691f/makepanda.py |
def redownloadContentsFile(self, http): """ Downloads a new contents.xml file in case it has changed. Returns true if the file has indeed changed, false if it has not. """ assert self.hasContentsFile | 7e27a2a3174f49c95a8c368244f5dba5be9a07c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/7e27a2a3174f49c95a8c368244f5dba5be9a07c3/HostInfo.py | ||
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. """ | 4e0eae9eff6180d37b3eec5f526fcfb8956b1a15 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/4e0eae9eff6180d37b3eec5f526fcfb8956b1a15/Packager.py |
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")): ... | 2af783dc286e912ed77b5320b3e0e1b147ac4521 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/2af783dc286e912ed77b5320b3e0e1b147ac4521/makepandacore.py | |
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")): ... | 2af783dc286e912ed77b5320b3e0e1b147ac4521 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/2af783dc286e912ed77b5320b3e0e1b147ac4521/makepandacore.py |
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")): ... | 2af783dc286e912ed77b5320b3e0e1b147ac4521 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/2af783dc286e912ed77b5320b3e0e1b147ac4521/makepandacore.py |
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... | d0aa7ba749f2f45430d0f2ccf48beb02b7612d21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/d0aa7ba749f2f45430d0f2ccf48beb02b7612d21/makepanda.py |
TargetAdd('interrogate.exe', opts=['ADVAPI', 'OPENSSL']) | TargetAdd('interrogate.exe', opts=['ADVAPI', 'OPENSSL', 'WINSHELL']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | df94195ce3f8ffd384b0a72bb5770e836e9e9d2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/df94195ce3f8ffd384b0a72bb5770e836e9e9d2e/makepanda.py |
TargetAdd('interrogate_module.exe', opts=['ADVAPI', 'OPENSSL']) | TargetAdd('interrogate_module.exe', opts=['ADVAPI', 'OPENSSL', 'WINSHELL']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | df94195ce3f8ffd384b0a72bb5770e836e9e9d2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/df94195ce3f8ffd384b0a72bb5770e836e9e9d2e/makepanda.py |
TargetAdd('parse_file.exe', opts=['ADVAPI', 'OPENSSL']) | TargetAdd('parse_file.exe', opts=['ADVAPI', 'OPENSSL', 'WINSHELL']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | df94195ce3f8ffd384b0a72bb5770e836e9e9d2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/df94195ce3f8ffd384b0a72bb5770e836e9e9d2e/makepanda.py |
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" | df94195ce3f8ffd384b0a72bb5770e836e9e9d2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/df94195ce3f8ffd384b0a72bb5770e836e9e9d2e/makepanda.py |
TargetAdd('test_interrogate.exe', opts=['ADVAPI', 'OPENSSL']) | TargetAdd('test_interrogate.exe', opts=['ADVAPI', 'OPENSSL', 'WINSHELL']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | df94195ce3f8ffd384b0a72bb5770e836e9e9d2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/df94195ce3f8ffd384b0a72bb5770e836e9e9d2e/makepanda.py |
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" | df94195ce3f8ffd384b0a72bb5770e836e9e9d2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/df94195ce3f8ffd384b0a72bb5770e836e9e9d2e/makepanda.py |
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() | 3216e5c0b6fa9c0a55732cfe2ddd811acbd1acc0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/3216e5c0b6fa9c0a55732cfe2ddd811acbd1acc0/DirectManipulation.py |
TargetAdd('plugin_standalone_panda3dBase.obj', opts=OPTS, input='panda3dBase.cxx') | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 47d95f60199654175f909c884a657e86fa5b54b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/47d95f60199654175f909c884a657e86fa5b54b7/makepanda.py | |
menuItem = self.menuEdit.Append(-1, "&Rndo") | menuItem = self.menuEdit.Append(-1, "&Redo") | def createMenu(self): menuItem = self.menuFile.Insert(0, -1 , "&New") self.Bind(wx.EVT_MENU, self.onNew, menuItem) menuItem = self.menuFile.Insert(1, -1 , "&Load") self.Bind(wx.EVT_MENU, self.onLoad, menuItem) | 4bcd3501f9eb2bff26e4a0d939da25dd6779341b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/4bcd3501f9eb2bff26e4a0d939da25dd6779341b/LevelEditorUI.py |
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" | bbcf2e4267fe9b3cc6bcc77ae196ea4bf601f812 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/bbcf2e4267fe9b3cc6bcc77ae196ea4bf601f812/makepanda.py |
widget.setPosHpr(state.base, state.pos, state.hpr) else: base.direct.widget.setPosHpr(state.base, state.pos, state.hpr) | if self.worldSpaceManip: widget.setPos(state.base, state.pos) widget.setHpr(render, VBase3(0)) else: widget.setPosHpr(state.base, state.pos, state.hpr) else: if self.worldSpaceManip: widget.setPos(state.base, state.pos) widget.setHpr(render, VBase3(0)) else: base.direct.widget.setPosHpr(state.base, state.pos, state.hpr... | def followSelectedNodePathTask(self, state): if hasattr(base.direct, "manipulationControl") and base.direct.manipulationControl.fMultiView: for widget in base.direct.manipulationControl.widgetList: widget.setPosHpr(state.base, state.pos, state.hpr) else: base.direct.widget.setPosHpr(state.base, state.pos, state.hpr) re... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
if base.direct.fControl and not self.currEditTypes & EDIT_TYPE_UNSCALABLE: if type == 'post': self.fScaling1D = 1 self.scale1D(state) else: self.fScaling3D = 1 self.scale3D(state) else: | if self.useSeparateScaleHandles: | def manipulateObjectTask(self, state): if self.fScaling1D: self.scale1D(state) elif self.fScaling3D: self.scale3D(state) else: # Widget takes precedence if self.constraint: type = self.constraint[2:] if base.direct.fControl and not self.currEditTypes & EDIT_TYPE_UNSCALABLE: if type == 'post': # [gjeon] non-uniform scal... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
elif self.fFreeManip: | elif self.fFreeManip and not self.useSeparateScaleHandles: | def manipulateObjectTask(self, state): if self.fScaling1D: self.scale1D(state) elif self.fScaling3D: self.scale3D(state) else: # Widget takes precedence if self.constraint: type = self.constraint[2:] if base.direct.fControl and not self.currEditTypes & EDIT_TYPE_UNSCALABLE: if type == 'post': # [gjeon] non-uniform scal... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
if base.direct.camera.getName() != 'persp': self.prevHit.assign(self.hitPt) | def xlate1D(self, state): # Constrained 1D Translation along widget axis # Compute nearest hit point along axis and try to keep # that point as close to the current mouse position as possible # what point on the axis is the mouse pointing at? self.hitPt.assign(self.objectHandles.getAxisIntersectPt( self.constraint[:1])... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py | |
print self.constraint | def scale1D(self, state): print self.constraint if hasattr(base.direct, "manipulationControl") and base.direct.manipulationControl.fMultiView: self.hitPtScale.assign(self.objectHandles.getMouseIntersectPt()) | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py | |
self.hitPtScale.assign(self.objectHandles.getMouseIntersectPt()) | self.hitPtScale.assign(self.objectHandles.getAxisIntersectPt(self.constraint[:1])) self.hitPtScale = self.objectHandles.getMat().xformVec(self.hitPtScale) | def scale1D(self, state): print self.constraint if hasattr(base.direct, "manipulationControl") and base.direct.manipulationControl.fMultiView: self.hitPtScale.assign(self.objectHandles.getMouseIntersectPt()) | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
d0 = (self.prevHitScale - widgetPos).length() d1 = (self.hitPtScale - widgetPos).length() offset = d1 - d0 currScale = base.direct.widget.getScale() | d0 = (self.prevHitScale).length() if d0 == 0: d0 = 0.001 d1 = (self.hitPtScale).length() if d1 == 0: d1 = 0.001 currScale = self.origScale | def scale1D(self, state): print self.constraint if hasattr(base.direct, "manipulationControl") and base.direct.manipulationControl.fMultiView: self.hitPtScale.assign(self.objectHandles.getMouseIntersectPt()) | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
currScale = Vec3(currScale.getX() + offset, currScale.getY(), currScale.getZ()) if currScale.getX() < 0.0: currScale.setX(0.01) | currScale = Vec3(currScale.getX() * d1/d0, currScale.getY(), currScale.getZ()) | def scale1D(self, state): print self.constraint if hasattr(base.direct, "manipulationControl") and base.direct.manipulationControl.fMultiView: self.hitPtScale.assign(self.objectHandles.getMouseIntersectPt()) | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
currScale = Vec3(currScale.getX(), currScale.getY() + offset, currScale.getZ()) if currScale.getY() < 0.0: currScale.setY(0.01) | currScale = Vec3(currScale.getX(), currScale.getY() * d1/d0, currScale.getZ()) | def scale1D(self, state): print self.constraint if hasattr(base.direct, "manipulationControl") and base.direct.manipulationControl.fMultiView: self.hitPtScale.assign(self.objectHandles.getMouseIntersectPt()) | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
currScale = Vec3(currScale.getX(), currScale.getY(), currScale.getZ() + offset) if currScale.getZ() < 0.0: currScale.setZ(0.01) | currScale = Vec3(currScale.getX(), currScale.getY(), currScale.getZ() * d1/d0) | def scale1D(self, state): print self.constraint if hasattr(base.direct, "manipulationControl") and base.direct.manipulationControl.fMultiView: self.hitPtScale.assign(self.objectHandles.getMouseIntersectPt()) | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
self.prevHitScale.assign(self.hitPtScale) | def scale1D(self, state): print self.constraint if hasattr(base.direct, "manipulationControl") and base.direct.manipulationControl.fMultiView: self.hitPtScale.assign(self.objectHandles.getMouseIntersectPt()) | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py | |
self.hitPtScale.assign(self.objectHandles.getMouseIntersectPt()) if self.fScaleInit1: self.fScaleInit1 = 0 self.prevHitScale.assign(self.hitPtScale) else: widgetPos = base.direct.widget.getPos() d0 = (self.prevHitScale - widgetPos).length() d1 = (self.hitPtScale - widgetPos).length() offset = d1 - d0 currScale = base... | if self.useSeparateScaleHandles: self.hitPtScale.assign(self.objectHandles.getAxisIntersectPt(self.constraint[:1])) self.hitPtScale = self.objectHandles.getMat().xformVec(self.hitPtScale) if self.fScaleInit1: self.fScaleInit1 = 0 self.prevHitScale.assign(self.hitPtScale) self.origScale = base.direct.widget.getScale() ... | def scale3D(self, state): if hasattr(base.direct, "manipulationControl") and base.direct.manipulationControl.fMultiView: self.hitPtScale.assign(self.objectHandles.getMouseIntersectPt()) | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
self.enableHandles(['x-post','x-ring','x-disc']) | self.enableHandles(['x-post','x-ring','x-disc', 'x-scale']) | def enableHandles(self, handles): if type(handles) == types.ListType: for handle in handles: self.enableHandle(handle) elif handles == 'x': self.enableHandles(['x-post','x-ring','x-disc']) elif handles == 'y': self.enableHandles(['y-post','y-ring','y-disc']) elif handles == 'z': self.enableHandles(['z-post','z-ring','z... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
self.enableHandles(['y-post','y-ring','y-disc']) | self.enableHandles(['y-post','y-ring','y-disc', 'y-scale']) | def enableHandles(self, handles): if type(handles) == types.ListType: for handle in handles: self.enableHandle(handle) elif handles == 'x': self.enableHandles(['x-post','x-ring','x-disc']) elif handles == 'y': self.enableHandles(['y-post','y-ring','y-disc']) elif handles == 'z': self.enableHandles(['z-post','z-ring','z... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
self.enableHandles(['z-post','z-ring','z-disc']) | self.enableHandles(['z-post','z-ring','z-disc', 'z-scale']) | def enableHandles(self, handles): if type(handles) == types.ListType: for handle in handles: self.enableHandle(handle) elif handles == 'x': self.enableHandles(['x-post','x-ring','x-disc']) elif handles == 'y': self.enableHandles(['y-post','y-ring','y-disc']) elif handles == 'z': self.enableHandles(['z-post','z-ring','z... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
self.enableHandles(['x-post','x-ring','x-disc', 'y-post','y-ring','y-disc', 'z-post','z-ring','z-disc']) | self.enableHandles(['x-post','x-ring','x-disc','x-scale', 'y-post','y-ring','y-disc','y-scale', 'z-post','z-ring','z-disc','z-scale']) | def enableHandles(self, handles): if type(handles) == types.ListType: for handle in handles: self.enableHandle(handle) elif handles == 'x': self.enableHandles(['x-post','x-ring','x-disc']) elif handles == 'y': self.enableHandles(['y-post','y-ring','y-disc']) elif handles == 'z': self.enableHandles(['z-post','z-ring','z... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
if handle == 'y-post': | elif handle == 'x-scale' and base.direct.manipulationControl.useSeparateScaleHandles: self.xScaleGroup.reparentTo(self.xHandles) elif handle == 'y-post': | def enableHandle(self, handle): if handle == 'x-post': self.xPostGroup.reparentTo(self.xHandles) elif handle == 'x-ring': self.xRingGroup.reparentTo(self.xHandles) elif handle == 'x-disc': self.xDiscGroup.reparentTo(self.xHandles) if handle == 'y-post': self.yPostGroup.reparentTo(self.yHandles) elif handle == 'y-ring':... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
if handle == 'z-post': | elif handle == 'y-scale' and base.direct.manipulationControl.useSeparateScaleHandles: self.yScaleGroup.reparentTo(self.yHandles) elif handle == 'z-post': | def enableHandle(self, handle): if handle == 'x-post': self.xPostGroup.reparentTo(self.xHandles) elif handle == 'x-ring': self.xRingGroup.reparentTo(self.xHandles) elif handle == 'x-disc': self.xDiscGroup.reparentTo(self.xHandles) if handle == 'y-post': self.yPostGroup.reparentTo(self.yHandles) elif handle == 'y-ring':... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
self.disableHandles(['x-post','x-ring','x-disc']) | self.disableHandles(['x-post','x-ring','x-disc','x-scale']) | def disableHandles(self, handles): if type(handles) == types.ListType: for handle in handles: self.disableHandle(handle) elif handles == 'x': self.disableHandles(['x-post','x-ring','x-disc']) elif handles == 'y': self.disableHandles(['y-post','y-ring','y-disc']) elif handles == 'z': self.disableHandles(['z-post','z-rin... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
self.disableHandles(['y-post','y-ring','y-disc']) | self.disableHandles(['y-post','y-ring','y-disc','y-scale']) | def disableHandles(self, handles): if type(handles) == types.ListType: for handle in handles: self.disableHandle(handle) elif handles == 'x': self.disableHandles(['x-post','x-ring','x-disc']) elif handles == 'y': self.disableHandles(['y-post','y-ring','y-disc']) elif handles == 'z': self.disableHandles(['z-post','z-rin... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
self.disableHandles(['z-post','z-ring','z-disc']) | self.disableHandles(['z-post','z-ring','z-disc','z-scale']) | def disableHandles(self, handles): if type(handles) == types.ListType: for handle in handles: self.disableHandle(handle) elif handles == 'x': self.disableHandles(['x-post','x-ring','x-disc']) elif handles == 'y': self.disableHandles(['y-post','y-ring','y-disc']) elif handles == 'z': self.disableHandles(['z-post','z-rin... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
self.disableHandles(['x-post','x-ring','x-disc', 'y-post','y-ring','y-disc', 'z-post','z-ring','z-disc']) | self.disableHandles(['x-post','x-ring','x-disc','x-scale', 'y-post','y-ring','y-disc','y-scale', 'z-post','z-ring','z-disc','z-scale']) | def disableHandles(self, handles): if type(handles) == types.ListType: for handle in handles: self.disableHandle(handle) elif handles == 'x': self.disableHandles(['x-post','x-ring','x-disc']) elif handles == 'y': self.disableHandles(['y-post','y-ring','y-disc']) elif handles == 'z': self.disableHandles(['z-post','z-rin... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
hitPt = entry.getSurfacePoint(entry.getFromNodePath()) np = NodePath('temp') np.setPos(base.direct.camera, hitPt) self.hitPt.assign(np.getPos()) np.remove() | self.hitPt = entry.getSurfacePoint(self) | def getAxisIntersectPt(self, axis): if hasattr(base.direct, "manipulationControl") and base.direct.manipulationControl.fMultiView and\ base.direct.camera.getName() != 'persp': # create ray from the camera to detect 3d position iRay = SelectionRay(base.direct.camera) iRay.collider.setFromLens(base.direct.camNode, base.d... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py |
def drawBox(lines, center, sideLength): l = sideLength * 0.5 lines.moveTo(center[0] + l, center[1] + l, center[2] + l) lines.drawTo(center[0] + l, center[1] + l, center[2] - l) lines.drawTo(center[0] + l, center[1] - l, center[2] - l) lines.drawTo(center[0] + l, center[1] - l, center[2] + l) lines.drawTo(center[0] + l... | def getWidgetIntersectPt(self, nodePath, plane): if hasattr(base.direct, "manipulationControl") and base.direct.manipulationControl.fMultiView and\ base.direct.camera.getName() != 'persp': self.hitPt.assign(self.getMouseIntersectPt()) return self.hitPt # Find out the point of interection of the ray passing though the ... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py | |
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... | 3e42473cb1f84955a09a35dcd48a750d8ea68588 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/3e42473cb1f84955a09a35dcd48a750d8ea68588/makepanda.py |
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. """ | d09a9be4dac789c1eec2a0ba123efa572a8e4e09 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/d09a9be4dac789c1eec2a0ba123efa572a8e4e09/Packager.py |
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. """ | d09a9be4dac789c1eec2a0ba123efa572a8e4e09 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/d09a9be4dac789c1eec2a0ba123efa572a8e4e09/Packager.py | |
Release: 1 | Release: RPMRELEASE | 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... | d7624e62c62cc7160bbf3cfb3ebc5e1f75c24e41 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/d7624e62c62cc7160bbf3cfb3ebc5e1f75c24e41/makepanda.py |
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=","... | b88ea69151bfcc1b6e3dd7736f7103ac33cfe4f3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b88ea69151bfcc1b6e3dd7736f7103ac33cfe4f3/makepanda.py |
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" | 7ea3dfbfee4139ab4dc9168bb6d875a59d15e2a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/7ea3dfbfee4139ab4dc9168bb6d875a59d15e2a0/makepanda.py |
configprc = configprc.replace("aux-display pandadx9","") configprc = configprc.replace("aux-display pandadx8","") | configprc = configprc.replace("aux-display pandadx9", "") configprc = configprc.replace("aux-display pandadx8", "") | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 7ea3dfbfee4139ab4dc9168bb6d875a59d15e2a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/7ea3dfbfee4139ab4dc9168bb6d875a59d15e2a0/makepanda.py |
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" | 7ea3dfbfee4139ab4dc9168bb6d875a59d15e2a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/7ea3dfbfee4139ab4dc9168bb6d875a59d15e2a0/makepanda.py |
configprc = configprc.replace("p3openal_audio","p3fmod_audio") | configprc = configprc.replace("p3openal_audio", "p3fmod_audio") | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 7ea3dfbfee4139ab4dc9168bb6d875a59d15e2a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/7ea3dfbfee4139ab4dc9168bb6d875a59d15e2a0/makepanda.py |
TargetAdd('libpandagl.dll', opts=['MODULE', 'GL', 'NVIDIACG', 'CGGL', 'X11', 'XRANDR', 'XF86DGA']) | TargetAdd('libpandagl.dll', opts=['MODULE', 'GL', 'NVIDIACG', 'CGGL', 'X11', 'XRANDR', 'XF86DGA', 'XCURSOR']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 40b487d3fade2f3d085bdf4caae1e0b5fa6cc1ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/40b487d3fade2f3d085bdf4caae1e0b5fa6cc1ea/makepanda.py |
TargetAdd('libpandagles.dll', opts=['MODULE', 'GLES', 'EGL', 'X11', 'XRANDR', 'XF86DGA']) | TargetAdd('libpandagles.dll', opts=['MODULE', 'GLES', 'EGL', 'X11', 'XRANDR', 'XF86DGA', 'XCURSOR']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 40b487d3fade2f3d085bdf4caae1e0b5fa6cc1ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/40b487d3fade2f3d085bdf4caae1e0b5fa6cc1ea/makepanda.py |
TargetAdd('libpandagles2.dll', opts=['MODULE', 'GLES2', 'EGL', 'X11', 'XRANDR', 'XF86DGA']) | TargetAdd('libpandagles2.dll', opts=['MODULE', 'GLES2', 'EGL', 'X11', 'XRANDR', 'XF86DGA', 'XCURSOR']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 40b487d3fade2f3d085bdf4caae1e0b5fa6cc1ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/40b487d3fade2f3d085bdf4caae1e0b5fa6cc1ea/makepanda.py |
TargetAdd('libtinydisplay.dll', opts=['X11', 'XRANDR', 'XF86DGA']) | TargetAdd('libtinydisplay.dll', opts=['X11', 'XRANDR', 'XF86DGA', 'XCURSOR']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 40b487d3fade2f3d085bdf4caae1e0b5fa6cc1ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/40b487d3fade2f3d085bdf4caae1e0b5fa6cc1ea/makepanda.py |
if hasattr(objDef, 'animDict'): | if hasattr(objDef, 'animDict') and objDef.animDict != {}: | def addNewObject(self, typeName, uid = None, model = None, parent=None, anim = None, fSelectObject=True, nodePath=None, nameStr=None): """ function to add new obj to the scene """ if parent is None: parent = self.editor.NPParent | 140d0ab80bfbe1cbeae65429659503e2e1495179 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/140d0ab80bfbe1cbeae65429659503e2e1495179/ObjectMgrBase.py |
if "/" not in libdep: oscmd("install_name_tool -change %s /Developer/Panda3D/lib/%s %s" % (libdep, libdep, libname), True) | if not libdep.startswith("/"): oscmd("install_name_tool -change %s /Developer/Panda3D/lib/%s %s" % (libdep, os.path.basename(libdep), libname), 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... | 33dca73f9e84b164423d8860ff6324fb842c3998 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/33dca73f9e84b164423d8860ff6324fb842c3998/makepanda.py |
if "/" not in libdep: oscmd("install_name_tool -change %s /Developer/Panda3D/lib/%s %s" % (libdep, libdep, binname), True) | if not libdep.startswith("/"): oscmd("install_name_tool -change %s /Developer/Panda3D/lib/%s %s" % (libdep, os.path.basename(libdep), binname), 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... | 33dca73f9e84b164423d8860ff6324fb842c3998 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/33dca73f9e84b164423d8860ff6324fb842c3998/makepanda.py |
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. """ | ccc9b30614dffc6543e857810c0c88ae9269d7d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/ccc9b30614dffc6543e857810c0c88ae9269d7d4/Packager.py | |
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... | b6d88741c3ae00058b407740dfea1d10b77bff46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b6d88741c3ae00058b407740dfea1d10b77bff46/makepanda.py | |
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... | b6d88741c3ae00058b407740dfea1d10b77bff46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b6d88741c3ae00058b407740dfea1d10b77bff46/makepanda.py |
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... | b6d88741c3ae00058b407740dfea1d10b77bff46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b6d88741c3ae00058b407740dfea1d10b77bff46/makepanda.py |
if (RUNTIME or RTDIST): OPTS=['DIR:direct/src/plugin_standalone', 'RUNTIME', 'TINYXML', 'OPENSSL'] TargetAdd('plugin_standalone_panda3dBase.obj', opts=OPTS, input='panda3dBase.cxx') | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | caf0d8789b930adadc5582fd63f9b0b080ccd6ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/caf0d8789b930adadc5582fd63f9b0b080ccd6ff/makepanda.py | |
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... | d594f42d11ea03efafe80ca416a3d8fce8d8ddd3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/d594f42d11ea03efafe80ca416a3d8fce8d8ddd3/makepandacore.py |
['pyiwconfig']) | []) | def __init__(self): self.XML_LOG_VERSION = 'V2' # For ease of comparison in database, we use ##.##.## format for version: self.SOFTWARE_VERSION = '00.00.00' # strings which will be used in the configuration file self.GENERAL = 'General' self.OBM_LOGS_DIR_NAME = 'OpenBmap logs directory name' self.OBM_PROCESSED_LOGS_DIR... | 36f6a5d7ae8a651357bb06991834a72e5039e3cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12211/36f6a5d7ae8a651357bb06991834a72e5039e3cb/logger.py |
pluginsNames = eval(self.get_config_value(self.GENERAL, self.LIST_OF_ACTIVE_PLUGINS)) | pluginsNames = eval(str(self.get_config_value(self.GENERAL, self.LIST_OF_ACTIVE_PLUGINS))) | def load_active_plugins(self): """Tries loading active plugins. Returns a list of successfully loaded pluging.""" result = [] pluginsNames = eval(self.get_config_value(self.GENERAL, self.LIST_OF_ACTIVE_PLUGINS)) | 36f6a5d7ae8a651357bb06991834a72e5039e3cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12211/36f6a5d7ae8a651357bb06991834a72e5039e3cb/logger.py |
def is_logging(self): | def is_logging(self, synchronised=True): | def is_logging(self): """Returns True if logging plugin(s) is(are) scheduled or working. False otherwise.""" self._loggerLock.acquire() logging.debug('OBM logger locked by is_logging().') result = (self._loggingThread != None) logging.debug('Is the GSM logger running? %s' % (result and 'Yes' or 'No') ) if not result: #... | 36f6a5d7ae8a651357bb06991834a72e5039e3cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12211/36f6a5d7ae8a651357bb06991834a72e5039e3cb/logger.py |
self._loggerLock.acquire() logging.debug('OBM logger locked by is_logging().') | if synchronised: self._loggerLock.acquire() logging.debug('OBM logger locked by is_logging().') else: logging.debug('OBM logger unsynchronised call to is_logging().') | def is_logging(self): """Returns True if logging plugin(s) is(are) scheduled or working. False otherwise.""" self._loggerLock.acquire() logging.debug('OBM logger locked by is_logging().') result = (self._loggingThread != None) logging.debug('Is the GSM logger running? %s' % (result and 'Yes' or 'No') ) if not result: #... | 36f6a5d7ae8a651357bb06991834a72e5039e3cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12211/36f6a5d7ae8a651357bb06991834a72e5039e3cb/logger.py |
self._loggerLock.release() logging.debug('OBM logger lock released by is_logging().') | if synchronised: self._loggerLock.release() logging.debug('OBM logger lock released by is_logging().') | def is_logging(self): """Returns True if logging plugin(s) is(are) scheduled or working. False otherwise.""" self._loggerLock.acquire() logging.debug('OBM logger locked by is_logging().') result = (self._loggingThread != None) logging.debug('Is the GSM logger running? %s' % (result and 'Yes' or 'No') ) if not result: #... | 36f6a5d7ae8a651357bb06991834a72e5039e3cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12211/36f6a5d7ae8a651357bb06991834a72e5039e3cb/logger.py |
obj = dbus.SystemBus().get_object('org.freesmartphone.ogsmd', '/org/freesmartphone/GSM/Device') data = dbus.Interface(obj, 'org.freesmartphone.GSM.Device').GetInfo() | try: obj = dbus.SystemBus().get_object('org.freesmartphone.ogsmd', '/org/freesmartphone/GSM/Device') data = dbus.Interface(obj, 'org.freesmartphone.Info').GetInfo() except Exception, e1: logging.error(e1) logging.info("Try the old GetInfo API") try: data = dbus.Interface(obj, 'org.freesmartphone.GSM.Device').GetInfo(... | def get_device_info(self): """If available, returns the manufacturer, model and revision.""" #TODO call the dBus interface only if instance attributes are not set. obj = dbus.SystemBus().get_object('org.freesmartphone.ogsmd', '/org/freesmartphone/GSM/Device') data = dbus.Interface(obj, 'org.freesmartphone.GSM.Device').... | d40c14e2706329514a1e1cc1905d52c84b3c909c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12211/d40c14e2706329514a1e1cc1905d52c84b3c909c/logger.py |
line = line.replace("|","\n") | def GetSubtitleList(self, path): outputList = [] f = self.convertFile(path) #f = open(path, 'r') state = SubtitlesLoader.LOOK_FOR_ID for line in f: line = line.rstrip() line = line.decode("utf8") | 22c14d6a78ae8687b3741630367872783647e73f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11741/22c14d6a78ae8687b3741630367872783647e73f/subtitles_loader.py | |
mygtk.show_error(_(u"You need to install the gstreamer soundtouch elements for " | print (_(u"You need to install the gstreamer soundtouch elements for " | def __init__(self): | 4755102a58ffee67337c6500f0d389193dc544d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11741/4755102a58ffee67337c6500f0d389193dc544d9/video_player.py |
"README if you need more information.")).run() | "README if you need more information.")) | def __init__(self): | 4755102a58ffee67337c6500f0d389193dc544d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11741/4755102a58ffee67337c6500f0d389193dc544d9/video_player.py |
"lastOpenFile" : None | "lastOpenFile" : "" | def __new__(cls): if cls._instance is None: cls._instance = object.__new__(cls) cls._instance.init() return cls._instance | b9b1b37703334f4e1f2028e69782ecdd433e2fbd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11741/b9b1b37703334f4e1f2028e69782ecdd433e2fbd/config.py |
self.properties.update( dict(self.configParser.items("files")) ) | def init(self): self.properties = {} self.properties["version"] = APP_VERSION self.properties["app_name"] = APP_NAME self.properties["gettext_package"] = "perroquet" self.properties["executable"] = os.path.dirname(sys.executable) self.properties["script"] = sys.path[0] self.properties["config_dir"] = os.path.join( os.p... | b9b1b37703334f4e1f2028e69782ecdd433e2fbd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11741/b9b1b37703334f4e1f2028e69782ecdd433e2fbd/config.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.