Check that the USER_CSS directory exists

This commit is contained in:
Nick Hall 2017-02-28 23:07:38 +00:00
parent 5ac0d29f00
commit c352fa6378

View File

@ -178,6 +178,7 @@ def load_on_reg(dbstate, uistate, plugin):
path_img_48x48("gramps-geo-mainmap.png"), None, [], [] ],
]
# If we add css user files, we must restart gramps to use them.
if os.path.exists(USER_CSS):
list_files = os.listdir(USER_CSS)
for cssfile in list_files:
CSS_FILES.append([cssfile, 1, cssfile.replace('.css', ''),