* src/plugins/GraphViz.py: Make it work for Windows
svn: r7039
This commit is contained in:
parent
7d1d821da8
commit
aec27f22cc
@ -1,3 +1,6 @@
|
|||||||
|
2006-07-18 Brian Matherly <brian@gramps-project.org>
|
||||||
|
* src/plugins/GraphViz.py: Make it work for Windows
|
||||||
|
|
||||||
2006-07-18 Don Allingham <don@gramps-project.org>
|
2006-07-18 Don Allingham <don@gramps-project.org>
|
||||||
* src/RelLib/_DateBase.py: fix the date comparison for text only
|
* src/RelLib/_DateBase.py: fix the date comparison for text only
|
||||||
dates
|
dates
|
||||||
|
@ -122,6 +122,9 @@ class _options:
|
|||||||
('', "Descendants - Ancestors", _("Descendants - Ancestors")),
|
('', "Descendants - Ancestors", _("Descendants - Ancestors")),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if os.sys.platform == "win32":
|
||||||
|
_dot_found = os.system("dot -V 2>nul") == 0
|
||||||
|
else:
|
||||||
_dot_found = os.system("dot -V 2>/dev/null") == 0
|
_dot_found = os.system("dot -V 2>/dev/null") == 0
|
||||||
|
|
||||||
if os.system("which epstopdf >/dev/null 2>&1") == 0:
|
if os.system("which epstopdf >/dev/null 2>&1") == 0:
|
||||||
@ -1146,9 +1149,9 @@ class GraphVizGraphics(Report):
|
|||||||
(self.junk_output,self.user_output,self.junk_output)
|
(self.junk_output,self.user_output,self.junk_output)
|
||||||
os.system(command)
|
os.system(command)
|
||||||
else:
|
else:
|
||||||
os.system('dot -T%s -o%s %s ; rm %s' %
|
os.system('dot -T%s -o"%s" "%s"' %
|
||||||
(self.the_format,self.user_output,
|
(self.the_format,self.user_output,self.junk_output) )
|
||||||
self.junk_output,self.junk_output))
|
os.remove(self.junk_output)
|
||||||
|
|
||||||
if self.doc.print_req:
|
if self.doc.print_req:
|
||||||
_apptype = None
|
_apptype = None
|
||||||
|
Loading…
Reference in New Issue
Block a user