Closed GoogleCodeExporter closed 9 years ago
Okay, I did a bit more of debugging... I found this bug does not happen if you
have an empty config file.
I've tracked down the bug to keymon.settings.get_config_dirs() function. It
uses __file__ to find out what is the directory. When running standalone,
__file__ contains the absolute file path. However, for some reason that I don't
know yet, when running inside PuDB it contains './keymon/settings.pyc'.
The fix should be easy: os.path.abspath(__file__)
Original comment by denilsonsa
on 12 Oct 2011 at 8:17
According to this mail thread:
http://mail.python.org/pipermail/python-dev/2010-February/097461.html
__file__ will be absolute or relative depending on the values of sys.path
(okay, this comment doesn't help fixing this issue, it's just nice to
understand how things work)
Original comment by denilsonsa
on 12 Oct 2011 at 9:54
Fixed, thanks
Original comment by scottaki...@gmail.com
on 13 Oct 2011 at 2:25
Original issue reported on code.google.com by
denilsonsa
on 11 Oct 2011 at 11:56