mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
Don't use appRunner's host, it doesnt have perPlatform = True
This commit is contained in:
parent
87dcb059cd
commit
c6ab7cf5e5
@ -8,7 +8,6 @@ import os, sys, subprocess, tarfile, shutil, time, zipfile, glob
|
|||||||
from direct.directnotify.DirectNotifyGlobal import *
|
from direct.directnotify.DirectNotifyGlobal import *
|
||||||
from pandac.PandaModules import PandaSystem, HTTPClient, Filename, VirtualFileSystem, Multifile, readXmlStream
|
from pandac.PandaModules import PandaSystem, HTTPClient, Filename, VirtualFileSystem, Multifile, readXmlStream
|
||||||
from direct.p3d.HostInfo import HostInfo
|
from direct.p3d.HostInfo import HostInfo
|
||||||
from direct.showbase.AppRunnerGlobal import appRunner
|
|
||||||
|
|
||||||
class CachedFile:
|
class CachedFile:
|
||||||
def __init__(self): self.str = ""
|
def __init__(self): self.str = ""
|
||||||
@ -26,12 +25,9 @@ class Standalone:
|
|||||||
self.basename = self.p3dfile.getBasenameWoExtension()
|
self.basename = self.p3dfile.getBasenameWoExtension()
|
||||||
self.tokens = tokens
|
self.tokens = tokens
|
||||||
|
|
||||||
if appRunner:
|
hostDir = Filename(Filename.getTempDirectory(), 'pdeploy/')
|
||||||
self.host = appRunner.getHost("http://runtime.panda3d.org/")
|
hostDir.makeDir()
|
||||||
else:
|
self.host = HostInfo("http://runtime.panda3d.org/", hostDir = hostDir, asMirror = False, perPlatform = True)
|
||||||
hostDir = Filename(Filename.getTempDirectory(), 'pdeploy/')
|
|
||||||
hostDir.makeDir()
|
|
||||||
self.host = HostInfo("http://runtime.panda3d.org/", hostDir = hostDir, asMirror = False, perPlatform = True)
|
|
||||||
|
|
||||||
self.http = HTTPClient.getGlobalPtr()
|
self.http = HTTPClient.getGlobalPtr()
|
||||||
if not self.host.readContentsFile():
|
if not self.host.readContentsFile():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user