Skip to content

Commit

Permalink
Revert "Match current Python version when searching for site-packages (
Browse files Browse the repository at this point in the history
…#29)" (#33)

This reverts commit bf9a87e, reversing
changes made to 0032e3d.
  • Loading branch information
jarrodmillman authored Dec 9, 2022
1 parent e65f153 commit 3a53650
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions devpy/cmds/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ def get_config():


def get_site_packages(build_dir):
X, Y = sys.version_info.major, sys.version_info.minor
for root, dirs, files in os.walk(install_dir(build_dir)):
for subdir in dirs:
if subdir == "site-packages" and root.endswith(f"python{X}.{Y}"):
if subdir == "site-packages":
return os.path.abspath(os.path.join(root, subdir))


Expand Down

0 comments on commit 3a53650

Please sign in to comment.