Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #335 from dephell/fix-pip
Browse files Browse the repository at this point in the history
Fix installation script
  • Loading branch information
orsinium committed Dec 17, 2019
2 parents 2f4b7a3 + 76e3d4f commit ccca4d2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,23 @@ def get_data_dir() -> Path:
from appdirs import user_data_dir
except ImportError:

# linux
path = Path.home() / '.local' / 'share'
if path.exists():
return path / 'dephell'

# mac os
path = Path.home() / 'Library' / 'Application Support'
if path.exists():
return path / 'dephell'

try:
from pip._internal import main
from pip._internal.main import main
except ImportError:
from pip import main
try:
from pip._internal import main
except ImportError:
from pip import main

main(['install', 'appdirs'])
from appdirs import user_data_dir
Expand Down

0 comments on commit ccca4d2

Please sign in to comment.