Re: [python-win32] Help required in opening a remote file in python.

2009-02-23 Thread Dahlstrom, Roger
It would be much easier for us to help if we could see your code, and the error you receive when you try to run it. From: python-win32-bounces+rdahlstrom=directedge@python.org [mailto:python-win32-bounces+rdahlstrom=directedge@python.org] On Behalf Of

[python-win32] Problem in finding the attributes of file with name in non english characters.

2009-02-23 Thread venu madhav
Hi all, I am trying to find the attributes of afile whose name has non english characters one like given below. When I try to run my python scirpt, it fails giving out an error filename must be in string or UNICODE. When i try to copy the name of the file as a strinig, it (KOMODO IDE) is

Re: [python-win32] Help required in opening a remote file in python.

2009-02-23 Thread Vernon Cole
Yes, if you are normal Windows shared files, you should be using normal file access functions. But your file name is incorrectly formatted. The name of the remote computer must have TWO leading backslashes, which is Windows' cue that you want a remote file. Python will convert forward slashes (/)

Re: [python-win32] pywin32 build 213 released

2009-02-23 Thread Mark Hammond
On 16/02/2009 11:50 PM, Mark Hammond wrote: Hi all, I'm extremely happy to announce the release of pywin32 build 213 - the first release of pywin32 with support for Python 3.x. This release has a large number of changes and should, in general, be considered BETA quality ... I'm not sure if

Re: [python-win32] pywin32 build 213 released

2009-02-23 Thread Jesus Aguillon
It did for me :) But now I'll give it a go! Jesus Aguillon On Mon, Feb 23, 2009 at 3:44 PM, Mark Hammond skippy.hamm...@gmail.comwrote: On 16/02/2009 11:50 PM, Mark Hammond wrote: Hi all, I'm extremely happy to announce the release of pywin32 build 213 - the first release of pywin32

Re: [python-win32] opening files with names in non-english characters.

2009-02-23 Thread venu madhav
Hello,First of all thanks for your response. I've written a function as shown below to recurse a directory and return a file based on the value of n. I am calling this fucntion from my main code to catch that filename. The folder which it recurses through contains a folder having files

Re: [python-win32] pywin32 build 213 released

2009-02-23 Thread Mark Tolonen
Mark Hammond skippy.hamm...@gmail.com wrote in message news:49a334c4.50...@gmail.com... On 16/02/2009 11:50 PM, Mark Hammond wrote: Hi all, I'm extremely happy to announce the release of pywin32 build 213 - the first release of pywin32 with support for Python 3.x. This release has a large

Re: [python-win32] opening files with names in non-english characters.

2009-02-23 Thread Gerdus van Zyl
I see a couple of problems with your code: 1. where is n first given a value and what is it total file count, etc? also you decrement the value, do you want the last file in the directory or something? 2. The if os.path.isdir(full_path): .. findFile(full_path) part doesn't return or handle the

Re: [python-win32] opening files with names in non-english characters.

2009-02-23 Thread venu madhav
Hello,The value of n is initialized in the main procedure which calls it. Basically I am trying to find the n'th file in the directory(can be in its sub directories too). As I've given the previous mail itself file = findFile(path) invokes that

Re: [python-win32] opening files with names in non-english characters.

2009-02-23 Thread Gerdus van Zyl
ok, I understand better now, some more points. You need to handle the case that it doesn't find the file after the for loop, one source of a None return. also as mentioned in point 2 when recursing you need to return the result so: if os.path.isdir(full_path):

Re: [python-win32] opening files with names in non-english characters.

2009-02-23 Thread venu madhav
Thank you very much for your timely replies. They were really helpful in making my work easier. But the main issue which I am facing is that if the file has name has some Unicode charactes (Arabic, Russian etc), this python interpreter is failing to detect those and inturn returning ??? in place