Browse Source

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

rdb 16 years ago
parent
commit
c6ab7cf5e5
1 changed files with 3 additions and 7 deletions
  1. 3 7
      direct/src/p3d/DeploymentTools.py

+ 3 - 7
direct/src/p3d/DeploymentTools.py

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