Fix installation into user directory

This allows `pip install --user SafeEyes` or `python setup.py install --user` to work.
This commit is contained in:
Dennis Schridde 2019-07-30 18:51:51 +02:00
parent 098f320aa1
commit 8c87902a3b
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):