Skip to content

Commit 75b1746

Browse files
jstockman67prculley
authored andcommitted
Fix file output location for DenominoViso (#203)
* Fix file output location for DenominoViso Prevent error where default location in in users program files directory on Microsoft windows and other os's "Failure writing /DenominoViso.xhtml: [Errno 13] Permission denied: see http://gramps.1791082.n4.nabble.com/DenominoViso-report-error-td4685342.html
1 parent 200f2be commit 75b1746

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

DenominoViso/DenominoViso.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
from gramps.gen.proxy import PrivateProxyDb
165165
from gramps.gen.utils.db import get_birth_or_fallback
166166
from gramps.gen.const import GRAMPS_LOCALE as glocale
167+
from gramps.gen.const import USER_HOME
167168
#-------------------------------------------------------------------------
168169
#
169170
# constants
@@ -2546,8 +2547,8 @@ def __init__(self, name, dbase):
25462547
def add_menu_options(self, menu):
25472548
category_name = _("DenominoViso Options")
25482549

2549-
des = DestinationOption(_("Destination"),
2550-
os.path.join(os.getcwd(),"DenominoViso.xhtml"))
2550+
des = DestinationOption(
2551+
_("Destination"), os.path.join(USER_HOME, "DenominoViso.xhtml"))
25512552
des.set_help(_("The destination file for the xhtml-content."))
25522553
menu.add_option(category_name, "DNMfilename", des)
25532554

0 commit comments

Comments
 (0)