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
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
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 (/)
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
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
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
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
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
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
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):
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
11 matches
Mail list logo