Fix installation into user directory (#334)
Allows `pip install --user SafeEyes` or `python setup.py install --user` to work.
This commit is contained in:
parent
098f320aa1
commit
1e3786667c
4
setup.py
4
setup.py
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue