Browse Source

minor cleanup

David Rose 16 years ago
parent
commit
40a7f71c77

+ 1 - 0
direct/src/p3d/AppRunner.py

@@ -457,6 +457,7 @@ class AppRunner(DirectObject):
             print "Couldn't find %s %s on %s" % (name, version, hostUrl)
             return
 
+        package.checkStatus()
         package.downloadDescFile(self.http)
         package.downloadPackage(self.http)
         package.installPackage(self)

+ 3 - 1
direct/src/plugin/load_plugin.cxx

@@ -157,7 +157,9 @@ load_plugin(const string &p3d_plugin_filename,
   module = LoadLibrary(filename.c_str());
   if (module == NULL) {
     // Couldn't load the DLL.
-    logfile << "Couldn't load " << filename << "\n";
+    logfile 
+      << "Couldn't load " << filename << ", error = " 
+      << GetLastError() << "\n";
     return false;
   }
 

+ 0 - 3
direct/src/plugin/p3dPythonMain.cxx

@@ -80,9 +80,6 @@ main(int argc, char *argv[]) {
     }
   }
 
-  cerr << "handles: " << input_handle << ", " << output_handle << "\n";
-  cerr << "interactive_console = " << interactive_console << "\n";
-
   if (!run_p3dpython(program_name, archive_file, input_handle, output_handle, 
                      NULL, interactive_console)) {
     cerr << "Failure on startup.\n";