From 1741024050441df26993cda80aaff51a1bf3634f Mon Sep 17 00:00:00 2001 From: Joel Bender Date: Thu, 5 May 2016 21:49:21 -0400 Subject: [PATCH] add the current working directory to the environment error to help when there are import path issues --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 30ea6deb..ad5193c8 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,11 @@ version_info = sys.version_info[:2] source_folder = "py" + str(version_info[0]) + str(version_info[1]) if not os.path.exists(source_folder): - raise EnvironmentError("unsupported version of Python, looking for " + repr(source_folder)) + raise EnvironmentError( + "unsupported version of Python, looking for " + + repr(source_folder) + " in " + + os.getcwd() + ) # load in the project metadata init_py = open(os.path.join(source_folder, 'bacpypes', '__init__.py')).read()