Message32653
On windows, glob.glob gives different results if you use a wildcard or not and if you use unix-style paths.
exemple :
import glob
print glob.glob("c:/tmp/3691674.jpg")
print glob.glob("c:/tmp/3691674.jpg*")
print glob.glob("c:/res.txt")
print glob.glob("c:/res.txt*")
gives :
['c:/tmp/3691674.jpg']
['c:/tmp\\3691674.jpg']
['c:/res.txt']
['c:/res.txt']
the two first calls give the same result but one with a platform specific separator, and not the other.
One can think that if there is no wildcard, this is normal behavior to return the path given to glob.glob but then I have the second inconsitency : in that case the last result should be c:\\res.txt. |
|
Date |
User |
Action |
Args |
2007-08-23 14:59:14 | admin | link | issue1776674 messages |
2007-08-23 14:59:14 | admin | create | |
|