1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 15:13:27 +02:00

support installing as a Python .egg

For platforms where easy_install is a good option, like OSX, support
the Python .egg library format.
This commit is contained in:
Hans-Christoph Steiner 2015-07-31 15:53:39 +02:00
parent 752b258ba7
commit 1c1f481fcc

View File

@ -70,7 +70,9 @@ def main():
# find root install prefix
tmp = os.path.dirname(sys.argv[0])
if os.path.basename(tmp) == 'bin':
prefix = os.path.dirname(tmp)
prefix = os.path.dirname(os.path.dirname(__file__)) # use .egg layout
if not prefix.endswith('.egg'): # use UNIX layout
prefix = os.path.dirname(tmp)
examplesdir = prefix + '/share/doc/fdroidserver/examples'
else:
# we're running straight out of the git repo