From 1830a44505cc6511d0acd2897adf0ff5c47e5ae5 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 24 Jan 2010 15:24:36 +0000 Subject: [PATCH] Had to allow links now that plugins is a dir inside gramps32 to allow flexibility in addons svn: r14115 --- src/gen/plug/_pluginreg.py | 2 +- src/gramps.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gen/plug/_pluginreg.py b/src/gen/plug/_pluginreg.py index 22713b0cf..80d608dc9 100644 --- a/src/gen/plug/_pluginreg.py +++ b/src/gen/plug/_pluginreg.py @@ -806,7 +806,7 @@ class PluginRegister(object): :Returns: A list with PluginData objects """ # if the directory does not exist, do nothing - if not os.path.isdir(dir): + if not (os.path.isdir(dir) or os.path.islink(dir)): return [] ext = r".gpr.py" diff --git a/src/gramps.py b/src/gramps.py index ad78b5e04..e115a0f03 100644 --- a/src/gramps.py +++ b/src/gramps.py @@ -124,7 +124,9 @@ def setup_logging(): def build_user_paths(): """ check/make user-dirs on each Gramps session""" for path in const.USER_DIRLIST: - if not os.path.isdir(path): + if os.path.islink(path): + pass # ok + elif not os.path.isdir(path): os.mkdir(path) def run():