mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03: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:
parent
752b258ba7
commit
1c1f481fcc
1 changed files with 3 additions and 1 deletions
|
@ -70,7 +70,9 @@ def main():
|
||||||
# find root install prefix
|
# find root install prefix
|
||||||
tmp = os.path.dirname(sys.argv[0])
|
tmp = os.path.dirname(sys.argv[0])
|
||||||
if os.path.basename(tmp) == 'bin':
|
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'
|
examplesdir = prefix + '/share/doc/fdroidserver/examples'
|
||||||
else:
|
else:
|
||||||
# we're running straight out of the git repo
|
# we're running straight out of the git repo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue