mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -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 pandac.PandaModules import PandaSystem, HTTPClient, Filename, VirtualFileSystem, Multifile, readXmlStream
|
||||
from direct.p3d.HostInfo import HostInfo
|
||||
from direct.showbase.AppRunnerGlobal import appRunner
|
||||
|
||||
class CachedFile:
|
||||
def __init__(self): self.str = ""
|
||||
@ -26,12 +25,9 @@ class Standalone:
|
||||
self.basename = self.p3dfile.getBasenameWoExtension()
|
||||
self.tokens = tokens
|
||||
|
||||
if appRunner:
|
||||
self.host = appRunner.getHost("http://runtime.panda3d.org/")
|
||||
else:
|
||||
hostDir = Filename(Filename.getTempDirectory(), 'pdeploy/')
|
||||
hostDir.makeDir()
|
||||
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()
|
||||
if not self.host.readContentsFile():
|
||||
|
Loading…
x
Reference in New Issue
Block a user