Merge branch 'master' of https://framagit.org/medoc92/recoll
This commit is contained in:
commit
2d4fb663c0
@ -62,6 +62,10 @@ class RclConfig:
|
|||||||
if os.path.exists(os.path.join(dir, "Share")):
|
if os.path.exists(os.path.join(dir, "Share")):
|
||||||
self.datadir = os.path.join(dir, "Share")
|
self.datadir = os.path.join(dir, "Share")
|
||||||
break
|
break
|
||||||
|
elif platsys == "Darwin":
|
||||||
|
# Actually, I'm not sure why we don't do this on all platforms
|
||||||
|
self.datadir = os.path.join(os.path.dirname(sys.argv[0]), "..")
|
||||||
|
#print("Mac datadir: [%s]" % self.datadir, file=sys.stderr)
|
||||||
else:
|
else:
|
||||||
dirs = ("/opt/local", "/opt", "/usr", "/usr/local")
|
dirs = ("/opt/local", "/opt", "/usr", "/usr/local")
|
||||||
for dir in dirs:
|
for dir in dirs:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user