mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-01-26 08:18:58 -05: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user