Had to allow links now that plugins is a dir inside gramps32 to allow flexibility in addons
svn: r14115
This commit is contained in:
parent
d3e57f4932
commit
1830a44505
@ -806,7 +806,7 @@ class PluginRegister(object):
|
|||||||
:Returns: A list with PluginData objects
|
:Returns: A list with PluginData objects
|
||||||
"""
|
"""
|
||||||
# if the directory does not exist, do nothing
|
# 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 []
|
return []
|
||||||
|
|
||||||
ext = r".gpr.py"
|
ext = r".gpr.py"
|
||||||
|
@ -124,7 +124,9 @@ def setup_logging():
|
|||||||
def build_user_paths():
|
def build_user_paths():
|
||||||
""" check/make user-dirs on each Gramps session"""
|
""" check/make user-dirs on each Gramps session"""
|
||||||
for path in const.USER_DIRLIST:
|
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)
|
os.mkdir(path)
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user