Don't use appRunner's host, it doesnt have perPlatform = True

This commit is contained in:
rdb 2009-12-31 08:45:04 +00:00
parent 87dcb059cd
commit c6ab7cf5e5

View File

@ -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():