svgexport "bug"

Bernhard Reiter bernhard at intevation.de
Wed Apr 12 14:05:26 CEST 2006


Am 12. Apr 2006 um 13:51:22 schrieb Didrik Pinte:
> Le mercredi 12 avril 2006 à 12:35 +0200, Bernhard Reiter a écrit :
> > There should be an extra top level menu "Extensions"
> > which should have "Write SVG Map" and "Write SVG Legend".
> 
> The Extensions  menu is there but nothing related to SVG in it.
> 
> Normal, here is the problem : svgexport/__init__.py :
> ------------------------------------------------------------------------
> try:
>     dummy = environ["DISPLAY"]
>     import svgsaver
>     import maplegend
> except:
>     pass # we don't have a DISPLAY, so don't import the modules
>          # (we probably are in test-mode)
>          # Not sure whether this is the best method to avoid problems
>          # in the global test routine.
> ------------------------------------------------------------------------
> 
> There is no DISPLAY variable on my Windows system. Commenting the line,
> it works fine and seems to export without any error messages.

Ah!
Yes, checking DISPLAY on windows is not right, can you file a report for it.
Just removing the check will not help as it will affect the bugs.
-------------- nächster Teil --------------
Ein Dateianhang mit Bin?rdaten wurde abgetrennt...
Dateiname   : nicht verf?gbar
Dateityp    : application/pgp-signature
Dateigr??e  : 189 bytes
Beschreibung: nicht verf?gbar
URL         : http://intevation.de/pipermail/thuban-devel/attachments/20060412/36b2557a/attachment.bin


More information about the Thuban-devel mailing list