Stuart Axon
2010-06-01 20:22:06 UTC
A lot of examples have hardcoded paths in them, I'm looking to avoid this...
I've got __file__ working in my branch, so you can do
os.path.dirname(__file__) + 'someresource.svg'
Any objections to me adding
__dirname__ with the current folder ?
This would make the code simpler + it is consistant with __file__ being a builtin.
S++
I've got __file__ working in my branch, so you can do
os.path.dirname(__file__) + 'someresource.svg'
Any objections to me adding
__dirname__ with the current folder ?
This would make the code simpler + it is consistant with __file__ being a builtin.
S++