Used the gramps way of editing files

svn: r13489
This commit is contained in:
Doug Blank 2009-11-03 12:01:33 +00:00
parent 6741ffed73
commit 98ec7731e7

View File

@ -47,6 +47,7 @@ import gobject
import ManagedWindow
import Errors
from gen.plug import PluginRegister, PTYPE_STR
from gui.utils import open_file_with_default_application
from gui.pluginmanager import GuiPluginManager
import _Tool as Tool
from QuestionDialog import InfoDialog
@ -311,12 +312,9 @@ Location: %(fpath)s
return
id = model.get_value(node, 4)
pdata = self.__preg.get_plugin(id)
if "EDITOR" in os.environ:
os.system("""$EDITOR "%s" &""" %
os.path.join(pdata.fpath, pdata.fname))
else:
os.system("""gedit "%s" &""" %
os.path.join(pdata.fpath, pdata.fname))
open_file_with_default_application(
os.path.join(pdata.fpath, pdata.fname)
)
#-------------------------------------------------------------------------
#