bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,400 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,401 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,402 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,403 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,404 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,405 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,406 |
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... | 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... | 458,407 |
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... | 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... | 458,408 |
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... | 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... | 458,409 |
def MakeInstallerLinux(): if RUNTIME: # No worries, it won't be used PYTHONV = "python" else: PYTHONV = SDK["PYTHONVERSION"] PV = PYTHONV.replace("python", "") if (os.path.isdir("targetroot")): oscmd("chmod -R 755 targetroot") oscmd("rm -rf targetroot data.tar.gz control.tar.gz panda3d.spec") oscmd("mkdir targetroot") ... | def MakeInstallerLinux(): if RUNTIME: # No worries, it won't be used PYTHONV = "python" else: PYTHONV = SDK["PYTHONVERSION"] PV = PYTHONV.replace("python", "") if (os.path.isdir("targetroot")): oscmd("chmod -R 755 targetroot") oscmd("rm -rf targetroot data.tar.gz control.tar.gz panda3d.spec") oscmd("mkdir targetroot") ... | 458,410 |
for moduleName, mdef in self.skipModules.items(): if moduleName not in self.freezer.modules: self.freezer.excludeModule( moduleName, allowChildren = mdef.allowChildren, forbid = mdef.forbid, fromSource = 'skip') | for moduleName, mdef in self.skipModules.items(): if moduleName not in self.freezer.modules: self.freezer.excludeModule( moduleName, allowChildren = mdef.allowChildren, forbid = mdef.forbid, fromSource = 'skip') | 458,411 |
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... | 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... | 458,412 |
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... | 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... | 458,413 |
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... | 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... | 458,414 |
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, ... | 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(), appRunner = base.appRunner, hostDir =... | 458,415 |
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()... | 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, appRunner = base.appRunner, rootDir = rootDir, asMirror = True, perPlatform = False) if... | 458,416 |
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()... | 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()... | 458,417 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,418 |
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... | 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... | 458,419 |
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... | 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... | 458,420 |
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... | 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... | 458,421 |
def createBuffer(self, name, xsize, ysize, texgroup, depthbits=1): """ Low-level buffer creation. Not intended for public use. """ | def createBuffer(self, name, xsize, ysize, texgroup, depthbits=1): """ Low-level buffer creation. Not intended for public use. """ | 458,422 |
def __init__(self, name=None, grp=None, cfg=None, frameCount=1): #check early out conditions if not bpEnabled: return | def __init__(self, name=None, grp=None, cfg=None, iff=True): #check early out conditions if not bpEnabled: return | 458,423 |
def shouldBreak(self,iff=True): #check easy early out if not iff: return False | def shouldBreak(self,iff=True): #check easy early out if not self.iff or not iff: return False | 458,424 |
def __init__(self,name,grp=None,cfg=None,frameCount=1): pass | def __init__(self,name,grp=None,cfg=None,iff=True): pass | 458,425 |
def wrap(*args, **kwds): #create our bp object dname = name or f.__name__ dgrp = grp dcfg = cfg dbp = bp(name=dname,grp=dgrp,cfg=dcfg) if dbp.shouldBreak(iff=iff): dbp.doBreak(frameCount=frameCount+1) f_result = f(*args, **kwds) return f_result | def wrap(*args, **kwds): #create our bp object dname = name or f.__name__ dgrp = grp dcfg = cfg dbp = bp(name=dname,grp=dgrp,cfg=dcfg) dbp.maybeBreak(iff=iff,frameCount=frameCount+1) f_result = f(*args, **kwds) return f_result | 458,426 |
def wrap(*args, **kwds): #create our bp object dname = name or f.__name__ dgrp = grp dcfg = cfg dbp = bp(name=dname,grp=dgrp,cfg=dcfg) if dbp.shouldBreak(iff=iff): dbp.doBreak(frameCount=frameCount+1) f_result = f(*args, **kwds) return f_result | defwrap(*args,**kwds):#createourbpobjectdname=nameorf.__name__dgrp=grpdcfg=cfgdbp=bp(name=dname,grp=dgrp,cfg=dcfg)ifdbp.shouldBreak(iff=iff):dbp.doBreak(frameCount=frameCount+1)f_result=f(*args,**kwds)returnf_result | 458,427 |
def bpGroup(*args, **kArgs): groupBp = bp(*(args), **kArgs) argsCopy = args[:] def functor(*cArgs, **ckArgs): return bp(*(cArgs), **kArgs) return functor | def bpGroup(*args, **kArgs): argsCopy = args[:] def functor(*cArgs, **ckArgs): return bp(*(cArgs), **kArgs) return functor | 458,428 |
def functor(*cArgs, **ckArgs): return bp(*(cArgs), **kArgs) | def functor(*cArgs, **ckArgs): return bp(*(cArgs), **kArgs) | 458,429 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,430 |
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 | def getCurrentFilter(self): if not self.state: error = "FSM cannot determine current filter while in transition (%s -> %s)." % (self.oldState, self.newState) raise AlreadyInTransition, error | 458,431 |
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... | 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... | 458,432 |
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... | 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... | 458,433 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,434 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,435 |
def flatten(self, newobjModel, objDef, uid): # override this to flatten models pass | def flatten(self, newobjModel, model, objDef, uid): # override this to flatten models pass | 458,436 |
def reset(self): base.direct.deselectAllCB() | def reset(self): base.direct.deselectAllCB() | 458,437 |
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() | def handleDelete(self): oldSelectedNPs = base.direct.selected.getSelectedAsList() for oldNP in oldSelectedNPs: obj = self.objectMgr.findObjectByNodePath(oldNP) if obj: oldUIDs.append(obj[OG.OBJ_UID]) action = ActionDeleteObj(self) self.actionMgr.push(action) action() | 458,438 |
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... | 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... | 458,439 |
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=... | 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=... | 458,440 |
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=... | 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=... | 458,441 |
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=... | def if (sys.platform.startswith("freebsd")): IncDirectory("ALWAYS", "/usr/local/include") LibDirectory("ALWAYS", "/usr/local/lib") parseopts(args): if (sys.platform.startswith("freebsd")): IncDirectory("ALWAYS", "/usr/local/include") LibDirectory("ALWAYS", "/usr/local/lib") global if (sys.platform.startswith("freebsd... | 458,442 |
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=... | 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=... | 458,443 |
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=... | 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=... | 458,444 |
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=... | 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=... | 458,445 |
def BracketNameWithQuotes(name): # Workaround for OSX bug - compiler doesn't like those flags quoted. if (name.startswith("-framework")): return name if (name.startswith("-dylib_file")): return name # Don't add quotes when it's not necessary. if " " not in name: return name # Account for quoted name (leave as is) but... | def BracketNameWithQuotes(name): # Workaround for OSX bug - compiler doesn't like those flags quoted. if (name.startswith("-framework")): return name if (name.startswith("-dylib_file")): return name # Don't add quotes when it's not necessary. if " " not in name: return name # Account for quoted name (leave as is) but... | 458,446 |
def BracketNameWithQuotes(name): # Workaround for OSX bug - compiler doesn't like those flags quoted. if (name.startswith("-framework")): return name if (name.startswith("-dylib_file")): return name # Don't add quotes when it's not necessary. if " " not in name: return name # Account for quoted name (leave as is) but... | def BracketNameWithQuotes(name): # Workaround for OSX bug - compiler doesn't like those flags quoted. if (name.startswith("-framework")): return name if (name.startswith("-dylib_file")): return name # Don't add quotes when it's not necessary. if " " not in name: return name # Account for quoted name (leave as is) but... | 458,447 |
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... | 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... | 458,448 |
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... | 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... | 458,449 |
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... | 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... | 458,450 |
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... | 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... | 458,451 |
def CompileResource(target, src, opts): ipath = GetListOption(opts, "DIR:") if (COMPILER=="MSVC"): cmd = "rc" cmd += " /Fo" + BracketNameWithQuotes(target) for x in ipath: cmd += " /I" + x for (opt,dir) in INCDIRECTORIES: if (opt=="ALWAYS") or (opts.count(opt)): cmd += " /I" + BracketNameWithQuotes(dir) for (opt,var,va... | def CompileResource(target, src, opts): ipath = GetListOption(opts, "DIR:") if (COMPILER=="MSVC"): cmd = "rc" cmd += " /Fo" + BracketNameWithQuotes(target) for x in ipath: cmd += " /I" + x for (opt,dir) in INCDIRECTORIES: if (opt=="ALWAYS") or (opts.count(opt)): cmd += " /I" + BracketNameWithQuotes(dir) for (opt,var,va... | 458,452 |
def RunGenPyCode(target, inputs, opts): if (PkgSkip("PYTHON") != 0): return cmdstr = SDK["PYTHONEXEC"] + " " + os.path.join("direct", "src", "ffi", "jGenPyCode.py") if (GENMAN): cmdstr += " -d" cmdstr += " -r" for i in inputs: if (GetOrigExt(i)==".dll"): cmdstr += " " + os.path.basename(os.path.splitext(i)[0].replace(... | def RunGenPyCode(target, inputs, opts): if (PkgSkip("PYTHON") != 0): return cmdstr = SDK["PYTHONEXEC"] + " " + os.path.join("direct", "src", "ffi", "jGenPyCode.py") if (GENMAN): cmdstr += " -d" cmdstr += " -r" for i in inputs: if (GetOrigExt(i)==".dll"): cmdstr += " " + os.path.basename(os.path.splitext(i)[0].replace(... | 458,453 |
def RunGenPyCode(target, inputs, opts): if (PkgSkip("PYTHON") != 0): return cmdstr = SDK["PYTHONEXEC"] + " " + os.path.join("direct", "src", "ffi", "jGenPyCode.py") if (GENMAN): cmdstr += " -d" cmdstr += " -r" for i in inputs: if (GetOrigExt(i)==".dll"): cmdstr += " " + os.path.basename(os.path.splitext(i)[0].replace(... | def RunGenPyCode(target, inputs, opts): if (PkgSkip("PYTHON") != 0): return cmdstr = SDK["PYTHONEXEC"] + " " + os.path.join("direct", "src", "ffi", "jGenPyCode.py") if (GENMAN): cmdstr += " -d" cmdstr += " -r" for i in inputs: if (GetOrigExt(i)==".dll"): cmdstr += " " + os.path.basename(os.path.splitext(i)[0].replace(... | 458,454 |
def FreezePy(target, inputs, opts): assert len(inputs) > 0 # Make sure this function isn't called before genpycode is run. cmdstr = SDK["PYTHONEXEC"] + " " + os.path.join("direct", "src", "showutil", "pfreeze.py") src = inputs.pop(0) for i in inputs: cmdstr += " -i " + os.path.splitext(i)[0] cmdstr += " -o " + target +... | def FreezePy(target, inputs, opts): assert len(inputs) > 0 # Make sure this function isn't called before genpycode is run. cmdstr = SDK["PYTHONEXEC"] + " " + os.path.join("direct", "src", "showutil", "pfreeze.py") src = inputs.pop(0) for i in inputs: cmdstr += " -i " + os.path.splitext(i)[0] cmdstr += " -o " + target +... | 458,455 |
def CompileBundle(target, inputs, opts): if (sys.platform != "darwin"): return plist = None resources = [] objects = [] for i in inputs: if (i.endswith(".plist")): if (plist != None): exit("Only one plist file can be used when creating a bundle!") plist = i elif (i.endswith(".rsrc") or i.endswith(".icns")): resources.a... | def CompileBundle(target, inputs, opts): if (sys.platform != "darwin"): return plist = None resources = [] objects = [] for i in inputs: if (i.endswith(".plist")): if (plist != None): exit("Only one plist file can be used when creating a bundle!") plist = i elif (i.endswith(".rsrc") or i.endswith(".icns")): resources.a... | 458,456 |
def CompileBundle(target, inputs, opts): if (sys.platform != "darwin"): return plist = None resources = [] objects = [] for i in inputs: if (i.endswith(".plist")): if (plist != None): exit("Only one plist file can be used when creating a bundle!") plist = i elif (i.endswith(".rsrc") or i.endswith(".icns")): resources.a... | def CompileBundle(target, inputs, opts): if (sys.platform != "darwin"): return plist = None resources = [] objects = [] for i in inputs: if (i.endswith(".plist")): if (plist != None): exit("Only one plist file can be used when creating a bundle!") plist = i elif (i.endswith(".rsrc") or i.endswith(".icns")): resources.a... | 458,457 |
ProgressOutput(progress, "Building package from pdef file", infile) | ProgressOutput(progress, "Building package from pdef file", infile) | 458,458 |
ProgressOutput(progress, "Building package from pdef file", infile) | ProgressOutput(progress, "Building package from pdef file", infile) | 458,459 |
def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | 458,460 |
def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | 458,461 |
def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | 458,462 |
def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | 458,463 |
def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | 458,464 |
def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | 458,465 |
def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | 458,466 |
def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | 458,467 |
def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | 458,468 |
def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | 458,469 |
def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | def WriteConfigSettings(): dtool_config={} prc_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] = unix for key,win,unix in... | 458,470 |
def CreatePandaVersionFiles(): version1=int(VERSION.split(".")[0]) version2=int(VERSION.split(".")[1]) version3=int(VERSION.split(".")[2]) nversion=version1*1000000+version2*1000+version3 if (DISTRIBUTOR != "cmu"): # Subtract 1 if we are not an official version. nversion -= 1 if (RUNTIME): pandaversion_h = PANDAVERSIO... | def CreatePandaVersionFiles(): version1=int(VERSION.split(".")[0]) version2=int(VERSION.split(".")[1]) version3=int(VERSION.split(".")[2]) nversion=version1*1000000+version2*1000+version3 if (DISTRIBUTOR != "cmu"): # Subtract 1 if we are not an official version. nversion -= 1 if (RUNTIME): pandaversion_h = PANDAVERSIO... | 458,471 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,472 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,473 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,474 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,475 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,476 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,477 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,478 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,479 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,480 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,481 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,482 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,483 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,484 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,485 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,486 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,487 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,488 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,489 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,490 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,491 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,492 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,493 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,494 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,495 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,496 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,497 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,498 |
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 458,499 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.