[Bf-python] Blender.sys.basename() different from os.path.basename() on Windows
Levi Schooley
bpycadmin at hhofministries.org
Thu Mar 8 21:29:52 CET 2007
Hello,
I know this is a bit picky, but I just noticed that the following script prints
two different results.
# On Windows only
import Blender, os
print os.path.basename("foo/foo.py") # prints "foo.py"
print Blender.sys.basename("foo/foo.py") # prints "foo/foo.py" ???
Is this expected behaviour? It's not a big problem since Blender comes bundled
with the os module, but it would be a little more convenient if Blender.sys
worked "as expected." Blender.sys.dirname() has the same issue.
Thanks!
Levi
More information about the Bf-python
mailing list