[Python-modules-commits] r29071 - in packages/ipython/trunk/debian/patches (1 file)
jtaylor-guest at users.alioth.debian.org
jtaylor-guest at users.alioth.debian.org
Sun May 25 15:27:11 UTC 2014
Date: Sunday, May 25, 2014 @ 15:27:10
Author: jtaylor-guest
Revision: 29071
update static path patch to allow testsuite to run at build time
Modified:
packages/ipython/trunk/debian/patches/shared-static-path.patch
Modified: packages/ipython/trunk/debian/patches/shared-static-path.patch
===================================================================
--- packages/ipython/trunk/debian/patches/shared-static-path.patch 2014-05-25 14:00:44 UTC (rev 29070)
+++ packages/ipython/trunk/debian/patches/shared-static-path.patch 2014-05-25 15:27:10 UTC (rev 29071)
@@ -1,16 +1,23 @@
Description: use usr/share/ipython/notebook by default for the static data
provided by ipython-notebook-common
+ during build the folder does not exist so use the local tree path for tests
Author: Julian Taylor <jtaylor.debian at googlemail.com>
Forwarded: not-needed
--- a/IPython/html/__init__.py
+++ b/IPython/html/__init__.py
-@@ -2,7 +2,7 @@
+@@ -2,8 +2,11 @@
import os
# Packagers: modify this line if you store the notebook static files elsewhere
-DEFAULT_STATIC_FILES_PATH = os.path.join(os.path.dirname(__file__), "static")
-+DEFAULT_STATIC_FILES_PATH = "/usr/share/ipython/notebook/static"
++if os.path.exists("/usr/share/ipython/notebook/static"):
++ DEFAULT_STATIC_FILES_PATH = "/usr/share/ipython/notebook/static"
++else:
++ DEFAULT_STATIC_FILES_PATH = os.path.join(os.path.dirname(__file__), "static")
del os
+-from .nbextensions import install_nbextension
+\ No newline at end of file
++from .nbextensions import install_nbextension
More information about the Python-modules-commits
mailing list