From 909ed0e9310f51b318fbfd3443112004190366d8 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 18 Oct 2011 00:18:01 +0000 Subject: [PATCH] import order --- direct/src/p3d/Packager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/direct/src/p3d/Packager.py b/direct/src/p3d/Packager.py index 7d5c1cea28..17bb4c0387 100644 --- a/direct/src/p3d/Packager.py +++ b/direct/src/p3d/Packager.py @@ -3,6 +3,9 @@ within a Panda3D Multifile, which can be easily be downloaded and/or patched onto a client machine, for the purpose of running a large application. """ +# Important to import panda3d first, to avoid naming conflicts with +# Python's "string" and "Loader" names that are imported later. +from panda3d.core import * import sys import os import glob @@ -15,7 +18,6 @@ import platform import struct from direct.p3d.FileSpec import FileSpec from direct.p3d.SeqValue import SeqValue -from pandac.PandaModules import * from direct.showbase import Loader from direct.showbase import AppRunnerGlobal from direct.showutil import FreezeTool