🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #27886

Re: ArcGIS - problem

#27886
From: Artur M. Piwko
Date: Thu, 20 Jan 2011 07:50
26 lines
1559 bytes
In the darkest hour on Wed, 19 Jan 2011 22:21:15 +0100,
Nateysz <43t4@vbr.pl> screamed:
> gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Spatial 
> Analyst Tools.tbx")
>

Raz masz tak...

>      Idw_punkty = "C:\\Dane14\\Idw" + '_' + str(i)

...a raz tak.

Jesli chcesz korzystać z '\' to raczej konstruuj ścieżki tak:
       Idw_punkty = r"C:\Dane14\Idw_" + str(i)

>      f=open(statystyki_IDW_TXT,"r")
>      gp.AddMessage(wiadomosc)
>      gp.AddMessage(f.read())

Brak f.close(). Ale to już zauważyłeś.

-- 
[ Artur M. Piwko : Pipen : AMP29-RIPE : RLU:100918 : From == Trap! : SIG:221B ]
[ 08:48:27 user up 12688 days, 20:43,  1 user, load average: 0.09, 0.89, 0.54 ]

                    Any program that runs right is obsolete.
Technical Details
Message-ID: <slrnijfqar.43l.milusi.pysiaczek@buziaczek.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <4d3755cb$0$2442$65785112@news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: "Artur M. Piwko" <milusi.pysiaczek@buziaczek.pl>
Newsgroups: pl.comp.lang.python
Subject: Re: ArcGIS - problem
Date: Thu, 20 Jan 2011 08:50:51 +0100
Organization: Petroleum Drinkers (;
Lines: 26
Message-ID: <slrnijfqar.43l.milusi.pysiaczek@buziaczek.pl>
References: <4d3755cb$0$2442$65785112@news.neostrada.pl>
Reply-To: milusi.pysiaczek@buziaczek.pl
NNTP-Posting-Host: 81.26.8.20
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1295510880 26196 81.26.8.20 (20 Jan 2011 08:08:00 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Thu, 20 Jan 2011 08:08:00 +0000 (UTC)
X-User: pipene
User-Agent: slrn/pre1.0.0-18 (Linux)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit