Adrian Bastholm added the comment:
Thanks a lot for the help, guys !
--
___
Python tracker
<http://bugs.python.org/issue14986>
___
___
Python-bugs-list mailin
Adrian Bastholm added the comment:
my code runs fine in a console window, so it's some kind of configuration
error. Sorry for wasting your time guys .. It would be nice to know why PyDev
is not setting the right environment vars though ..
>>> traverse(".")
Processin
Adrian Bastholm added the comment:
Output in console:
Python 3.2.3 (v3.2.3:3d0686d90f55, Apr 10 2012, 11:25:50)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> im
Adrian Bastholm added the comment:
You're right, my code was shite. Strange though it seemed to work on some
files. The following updated version does everything as intended with the help
of os.path.join:
def traverse (targetDir):
currentDir = targetDir
dirs = os.listdir(targ
Adrian Bastholm added the comment:
The last post is the CAPITAL Å. The following is the small letter "å"
U+00E5 LATIN SMALL LETTER A WITH RING ABOVE
General Character Properties
In Unicode since: 1.1
Unicode category: Letter, Lowercase
Canonical decomposition: U+0061 LATIN SMALL LE
Adrian Bastholm added the comment:
The char in question: 'å'. It is a folder with this character in the name. My
encoding is UTF-8. Running print("\u030a") gives a blank line
U+00C5 LATIN CAPITAL LETTER A WITH RING ABOVE
General Character Properties
In Unicode since:
New submission from Adrian Bastholm :
print(listentry) fails on folder name with swedish (latin1) characters
Error:
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/encodings/mac_roman.py",
line 19, in encode
return codecs.charmap_encode(input,s
New submission from Adrian Bastholm :
os.path.isfile doesn't reckognize a .picasa.ini file as a file
and os.path.isdir doesn't reckognize a directory as a directory
code:
def traverse (targetDir):
currentDir = targetDir
dirs = os.listdir(targetDir)
#dirs = [x for x in