Skip to content

Commit

Permalink
add the current working directory to the environment error to help wh…
Browse files Browse the repository at this point in the history
…en there are import path issues
  • Loading branch information
JoelBender committed May 6, 2016
1 parent d5c08c8 commit 1741024
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1741024

Please sign in to comment.