We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a84852a commit 8de5de2Copy full SHA for 8de5de2
spm/_spm/__init__.py
@@ -117,8 +117,14 @@ def get_paths_from_os(self):
117
raise RuntimeError('Operating system {0} is not supported.'.format(self.system))
118
119
path_elements = []
120
+
121
if self.path_var in os.environ:
122
path_elements = os.environ[self.path_var].split(os.pathsep)
123
124
+ # On the Mac, do an additional check on DYLD_FALLBACK_LIBRARY_PATH environment variable
125
+ if not path_elements and self.system == 'Darwin':
126
+ path_elements = os.environ['DYLD_FALLBACK_LIBRARY_PATH'].split(os.pathsep)
127
128
if not path_elements:
129
if self.system == 'Darwin':
130
raise RuntimeError('On the Mac, you must run mwpython rather than python ' +
0 commit comments