Had to allow links now that plugins is a dir inside gramps32 to allow flexibility in addons

svn: r14115
This commit is contained in:
Doug Blank 2010-01-24 15:24:36 +00:00
parent d3e57f4932
commit 1830a44505
2 changed files with 4 additions and 2 deletions

View File

@ -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"

View File

@ -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():