Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
module_directory not handled properly when given an absolute template path on Windows #128
Migrated issue, originally created by Anonymous
When an absolute path is given on windows (i.e. c:\ or d:) for the filename parameter to Template.init, then the module_directory parameter is ignored because of how os.path.join works.
A patch is attached to emulate the way absolute paths work on posix systems.
Michael Bayer (@zzzeek) wrote:
I'd prefer this:
can you test ? This should have a platform independent unit test in order to be committed (i.e. set os.path to os.ntpath, check desired output, set os.path to os.posixpath, etc.).