Re: write file to a server

2015-01-28 Thread luca72
thanks for the reply i have resolve with the r'.' i have another question on linux i write cp -Ruv source destination There is one way to do it in python? with shutil there is copythree but if the dest dir exist he give back an error. Can you give me some ideas Thanks Luca -- https://ma

Re: write file to a server

2015-01-28 Thread Chris Angelico
On Thu, Jan 29, 2015 at 5:05 AM, Mark Lawrence wrote: > Windows will accept forward slashes in path names. Normally, yes. Does that work for UNC names too? //server/share/pathname ? In any case, that's an alternative solution to the same problem. ChrisA -- https://mail.python.org/mailman/listin

Re: write file to a server

2015-01-28 Thread Mark Lawrence
On 28/01/2015 14:12, Chris Angelico wrote: On Thu, Jan 29, 2015 at 12:38 AM, MRAB wrote: On 2015-01-28 13:22, luca72 wrote: Hello i'm under windows, i have to write a file from my computer to a local server like taht "\\DOCUMENTALE\my_folder\". How i have to proceed ? That's a path to a fol

Re: write file to a server

2015-01-28 Thread Chris Angelico
On Thu, Jan 29, 2015 at 12:38 AM, MRAB wrote: > On 2015-01-28 13:22, luca72 wrote: >> >> Hello i'm under windows, i have to write a file from my computer to a >> local server like taht "\\DOCUMENTALE\my_folder\". >> How i have to proceed ? >> > That's a path to a folder that just happens to be on

Re: write file to a server

2015-01-28 Thread MRAB
On 2015-01-28 13:22, luca72 wrote: Hello i'm under windows, i have to write a file from my computer to a local server like taht "\\DOCUMENTALE\my_folder\". How i have to proceed ? That's a path to a folder that just happens to be on another computer on your network. Treat it the same way you wo

Re: write file

2011-07-05 Thread Benjamin Kaplan
On Jul 5, 2011 2:28 PM, "miguel olivares varela" wrote: > > > Hi, > > i got a csv file that i need to modify and create a new one, i have no problem to read mi 'test.cvs' which is the source file but when i try to create a new one with the modifications i only got the first row in my 'out.csv' fi

RE: write file

2011-07-05 Thread miguel olivares varela
What's date_cdr supposed to be? It was a mistake it should be date_source Is your exception handler doing unusual things with sys.exit? Not really Did you try to run this? When I try to run it, it fails to compile. it compiles i have no problems with the compilation. The issue is the res

Re: write file

2011-07-05 Thread Dan Stromberg
What's date_cdr supposed to be? Is your exception handler doing unusual things with sys.exit? Did you try to run this? When I try to run it, it fails to compile. You might want to try opening your output file once and writing to it repeatedly, then close()ing it after all your writes are comple