Fix installation into user directory (#334)

Allows `pip install --user SafeEyes` or `python setup.py install --user` to work.
This commit is contained in:
Dennis Schridde 2019-07-31 01:19:55 +02:00 committed by Gobinath
parent 098f320aa1
commit 1e3786667c
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import os
import os, sys, site
import subprocess
import setuptools
@ -42,7 +42,7 @@ def _data_files(path):
for root, _, files in os.walk(path):
if not files:
continue
yield (os.path.join('/usr', root), [os.path.join(root, f) for f in files])
yield (os.path.join(site.USER_BASE or sys.prefix, root), [os.path.join(root, f) for f in files])
def __package_files(directory):