Used the gramps way of editing files
svn: r13489
This commit is contained in:
parent
6741ffed73
commit
98ec7731e7
@ -47,6 +47,7 @@ import gobject
|
|||||||
import ManagedWindow
|
import ManagedWindow
|
||||||
import Errors
|
import Errors
|
||||||
from gen.plug import PluginRegister, PTYPE_STR
|
from gen.plug import PluginRegister, PTYPE_STR
|
||||||
|
from gui.utils import open_file_with_default_application
|
||||||
from gui.pluginmanager import GuiPluginManager
|
from gui.pluginmanager import GuiPluginManager
|
||||||
import _Tool as Tool
|
import _Tool as Tool
|
||||||
from QuestionDialog import InfoDialog
|
from QuestionDialog import InfoDialog
|
||||||
@ -311,12 +312,9 @@ Location: %(fpath)s
|
|||||||
return
|
return
|
||||||
id = model.get_value(node, 4)
|
id = model.get_value(node, 4)
|
||||||
pdata = self.__preg.get_plugin(id)
|
pdata = self.__preg.get_plugin(id)
|
||||||
if "EDITOR" in os.environ:
|
open_file_with_default_application(
|
||||||
os.system("""$EDITOR "%s" &""" %
|
os.path.join(pdata.fpath, pdata.fname)
|
||||||
os.path.join(pdata.fpath, pdata.fname))
|
)
|
||||||
else:
|
|
||||||
os.system("""gedit "%s" &""" %
|
|
||||||
os.path.join(pdata.fpath, pdata.fname))
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user