jschuengel: thuban/Extensions/umn_mapserver mf_import.py,1.1,1.2

Bernhard Herzog bh at intevation.de
Wed Jun 16 14:15:59 CEST 2004


cvs at intevation.de writes:

> Index: mf_import.py
> ===================================================================
> RCS file: /thubanrepository/thuban/Extensions/umn_mapserver/mf_import.py,v
> retrieving revision 1.1
> retrieving revision 1.2
> diff -u -d -r1.1 -r1.2
> --- mf_import.py	10 Jun 2004 12:49:58 -0000	1.1
> +++ mf_import.py	16 Jun 2004 10:44:34 -0000	1.2
> @@ -76,23 +78,50 @@
>                         _("Select MapFile file"), ".", "",
>                         _("UMN MapServer Mapfiles (*.map)|*.map|") +
>                         _("All Files (*.*)|*.*"),
> -                       wxOPEN|wxOVERWRITE_PROMPT)
> +                       wxOPEN|wxOVERWRITE_PROMPT|wxCHANGE_DIR)

Please don't use wxCHANGE_DIR.  Changing the current directory is a bad
idea in almost all cases.  The meaning of relative filenames changes as
a result of a changed working directory and that may have undesirable
consequences in other parts of the program.

   Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Skencil                                http://sketch.sourceforge.net/
Thuban                                  http://thuban.intevation.org/




More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)