Skip to content

Commit

Permalink
Update the installer script to handle future releases (#2233)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdispater authored Mar 27, 2020
1 parent 1d413c0 commit 2f8b67e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion get-poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,12 @@ def expanduser(path):
import os
lib = os.path.normpath(os.path.join(os.path.realpath(__file__), "../..", "lib"))
vendors = os.path.join(lib, "poetry", "_vendor")
current_vendors = os.path.join(
vendors, "py{}".format(".".join(str(v) for v in sys.version_info[:2]))
)
sys.path.insert(0, lib)
sys.path.insert(0, current_vendors)
if __name__ == "__main__":
from poetry.console import main
Expand Down

0 comments on commit 2f8b67e

Please sign in to comment.