Don't change the behaviour in debian setups

This commit is contained in:
Daniel Martí 2014-06-30 19:52:59 +02:00
parent cef7cd2888
commit 34151241f4

View file

@ -112,13 +112,13 @@ def main():
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
# find root install prefix # find root install prefix
tmp = os.path.normpath(os.path.join(os.path.dirname(__file__), '..')) 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(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
prefix = tmp prefix = os.path.normpath(os.path.join(os.path.dirname(__file__), '..'))
examplesdir = prefix + '/examples' examplesdir = prefix + '/examples'
fdroiddir = os.getcwd() fdroiddir = os.getcwd()