tags 504251 + patch
thanks

Hi,

Attached is the diff for my dia 0.96.1-7.1 NMU.

Yours sincerely,
  Alexander
diff -u dia-0.96.1/debian/changelog dia-0.96.1/debian/changelog
--- dia-0.96.1/debian/changelog
+++ dia-0.96.1/debian/changelog
@@ -1,3 +1,11 @@
+dia (0.96.1-7.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Applying patch by James Vega to solve module import problem
+    (Closes: #504251)
+
+ -- Alexander Reichle-Schmehl <[EMAIL PROTECTED]>  Sat, 15 Nov 2008 22:11:35 +0100
+
 dia (0.96.1-7) unstable; urgency=low
 
   * debian/control: Standards-Version: 3.8.0
only in patch2:
unchanged:
--- dia-0.96.1.orig/plug-ins/python/python.c
+++ dia-0.96.1/plug-ins/python/python.c
@@ -102,6 +102,8 @@
     Py_Initialize();
 
     PySys_SetArgv(1, python_argv);
+    /* Sanitize sys.path */
+    PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)");
 
     if (on_error_report())
 	return DIA_PLUGIN_INIT_ERROR;

Reply via email to