Roundup Tracker - Issues

Issue 800718

classification
absolute path in imp.load_module() call
Type: Severity: normal
Components: None Versions:
process
Status: closed fixed
:
: : calvin, richard
Priority: normal : patch

Created on 2003-09-04 21:38 by calvin, last changed 2003-09-04 21:38 by calvin.

Files
File name Uploaded Description Edit Remove
08_fix_imp_path.dpatch calvin, 2003-09-04 21:38
Messages
msg2649 Author: [hidden] (calvin) Date: 2003-09-04 21:38
if not given an absolute path, the template .pyo files
will end up in the current directory instead of the
modules path.
msg2650 Author: [hidden] (richard) Date: 2003-09-04 23:40
Logged In: YES 
user_id=6405

Changed patch to 
 
module = imp.load_module(name, open(path), os.path.abspath(path), 
   ('.py', 'r', imp.PY_SOURCE)) 
 
Thanks for finding the source of those damn pyc files though! 
 
History
Date User Action Args
2003-09-04 21:38:44calvincreate