Files
macports-ports/python/py-spyder/files/patch-spyder_app_utils.py.diff
Renee Otten d243602d8f py-spyder: update to 4.2.1
- pin to version 4.1.6 for py27/py35 subports

Closes: https://trac.macports.org/ticket/61952
2021-01-09 22:00:14 -05:00

12 lines
527 B
Diff

--- spyder/app/utils.py.orig 2020-11-08 16:56:03.000000000 -0500
+++ spyder/app/utils.py 2020-12-11 23:26:54.000000000 -0500
@@ -50,7 +50,7 @@
return file_uri(osp.join(doc_path, python_chm[0]))
else:
vinf = sys.version_info
- doc_path = '/usr/share/doc/python%d.%d/html' % (vinf[0], vinf[1])
+ doc_path = '@@PREFIX@@/share/doc/python%d.%d/html' % (vinf[0], vinf[1])
python_doc = osp.join(doc_path, "index.html")
if osp.isfile(python_doc):
return file_uri(python_doc)