Comment 2 for bug 795159

Revision history for this message
C de-Avillez (hggdh2) wrote :

1. path adjustment: I see no reason for it -- the code goes this way:

 (...)
 20 os.chdir(os.path.normpath(os.path.dirname(__file__)))
 21 # Optional: Add QWeb in sys path
 22 sys.path[0:0]=glob.glob('../../python')
 23
 24 import qweb, codecs
(...)

the python script is located at /usr/share/ajaxterm/. There is no such directory (from the current path) as '../../python', so the 'glob.glob()' call returns an empty list. Additionally, qweb.py is in the same directory as the script. I am guessing this is a left-over.