Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 974987c

Browse files
committed
Revert "make setup.py test work when called from other directory"
This reverts commit 5dc1f22.
1 parent 5dc1f22 commit 974987c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setupext.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ def extract_versions():
107107
Extracts version values from the main matplotlib __init__.py and
108108
returns them as a dictionary.
109109
"""
110-
with open(os.path.join(os.path.dirname(__file__),
111-
'lib/matplotlib/__init__.py')) as fd:
110+
with open('lib/matplotlib/__init__.py') as fd:
112111
for line in fd.readlines():
113112
if (line.startswith('__version__')):
114113
exec(line.strip())

0 commit comments

Comments
 (0)