Files
macports-ports/python/py-spyder/files/patch-spyder_utils_programs.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

15 lines
476 B
Diff

--- spyder/utils/programs.py.orig 2020-11-08 16:56:03.000000000 -0500
+++ spyder/utils/programs.py 2020-12-11 23:26:54.000000000 -0500
@@ -118,6 +118,11 @@
abspath = osp.join(path, basename)
if osp.isfile(abspath):
return abspath
+ else:
+ abspath = "@@APPS_DIR@@/" + basename + ".app/Contents/MacOS/" + basename
+ if osp.isfile(abspath):
+ return abspath
+ return None
def find_program(basename):