On Sat, Feb 28, 2015 at 8:00 AM, Beckett Simmons <beckettsimm...@hotmail.com
> wrote:
>
>
> Leo Log Window
> Leo 5.0-final, build 20150225125830, Wed Feb 25 12:58:30 CST 2015
> Git repo info: branch = master, commit = 51e89bdbb865
> Python 2.7.9, PyQt version 4.8.6
> Windows 8 AMD64 (build 6.2.9200)
> reading: C:\Users\bsimmons\leos\bermudahurricane.leo
> read outline in 0.08 seconds
> hook failed: after-create-leo-frame, <function onCreate at
> 0x00000000036B4908>, leo.plugins.todo
> Traceback (most recent call last):
>   File "leo\core\leoPlugins.py", line 357, in callTagHandler
>     result = handler(tag,keywords)
>   File "leo\plugins\todo.py", line 99, in onCreate
>     todoController(c)
>   File "leo\plugins\todo.py", line 399, in __init__
>     os.chdir(
> ​​
> os.path.split(__file__)[0])
> WindowsError: [Error 3] The system cannot find the path specified:
> 'leo\\plugins'
>
> Of course the leo/plugins directory is indeed there, any idea why Windows
> says it can't be found?
>

​leo/plugins is a path relative the os.curdir.​
​

​It looks like todo.py needs to compute an absolute path. Clearly,
​
os.path.split(__file__)[0] is not up to the job.

EKR

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to