Nodular on Windows

1 view
Skip to first unread message

Kiran Jonnalagadda

unread,
Apr 4, 2013, 2:02:18 AM4/4/13
to hasgee...@googlegroups.com
A couple of days ago I noticed I was using os.path.join to construct paths, but the os.* modules are OS-dependent. That means os.path.join uses '/' as a separator on POSIX environments, but could be different on other platforms. Sure enough, the Windows version uses '\'.

That means nodular will not work on Windows, so I cloned the POSIX os.path.join into a custom function inside Nodular. http://nodular.readthedocs.org/en/latest/node.html#nodular.node.pathjoin

This morning I ran the tests under Windows and I'm happy to report that they pass.

Kiran

-- 
Kiran Jonnalagadda

Kiran Jonnalagadda

unread,
Apr 4, 2013, 2:04:50 AM4/4/13
to hasgee...@googlegroups.com
PS: nosetests insists on running tests for shell.py, which fails to import readline, which isn't available on Windows. I tried excluding shell.py in setup.cfg, but that doesn't seem to work. Ideas?

-- 
Kiran Jonnalagadda

Reply all
Reply to author
Forward
0 new messages