Check that the USER_CSS directory exists
This commit is contained in:
parent
5ac0d29f00
commit
c352fa6378
@ -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', ''),
|
||||
|
Loading…
Reference in New Issue
Block a user