Browse Source

minor tweaks

David Rose 16 years ago
parent
commit
cf761ff85a
2 changed files with 9 additions and 3 deletions
  1. 8 3
      direct/src/plugin/p3dPythonRun.h
  2. 1 0
      direct/src/plugin/p3dSession.cxx

+ 8 - 3
direct/src/plugin/p3dPythonRun.h

@@ -41,13 +41,18 @@ using namespace std;
 //               launched as a separate executable from the p3d_plugin
 //               dll, because that's the only way Windows can launch a
 //               sub-process, and also because it makes it possible to
-//               compile-time link with the Python dll, instead of
+//               compile-time link with Panda and Python, instead of
 //               having to go through the clumsy dynamic-loading
 //               interface.
 //
 //               Communication is via XML files exchanged via
-//               anonymous pipes from the parent process.  This
-//               executable is not designed to stand alone.
+//               anonymous pipes from the parent process.  This isn't
+//               terribly eficient, of course, but it's easy; and it's
+//               a fairly low-bandwidth channel so efficiency is not
+//               paramount.
+//
+//               This executable is not designed to stand alone; it is
+//               designed to be invoked only by p3d_plugin.
 ////////////////////////////////////////////////////////////////////
 class P3DPythonRun {
 public:

+ 1 - 0
direct/src/plugin/p3dSession.cxx

@@ -35,6 +35,7 @@ P3DSession(P3DInstance *inst) {
   _python_root_dir = "C:/p3drun";
 
   string p3dpython = "c:/cygwin/home/drose/player/direct/built/bin/p3dpython.exe";
+  //  string p3dpython = _python_root_dir + "/p3dpython.exe";
 
   // Populate the new process' environment.
   string env;