Consider 2 files in the same folder, one importing the other.

This runs fine from the folder holding the 2 files or from any other folder.

Pylinting is fine from the folder holding the 2 files but not from any other folder as it then results in;

[F0401] Unable to import 'module'

TMHO this is not right and therefore I added;

import sys
import os
sys.path.insert(0, os.path.abspath(os.path.dirname(sys.argv[-1])))

to;
c:\Python26\Scripts\pylint

Can this be fixed?

Kind regards,

Okko Willeboordse
Consultant

Imtech ICT Technical Systems
A: Terminalweg 32, 3821 AJ AMERSFOORT
T: +31 (0) 33 4543333
M: +31 (0) 6 46 17 43 09
E: [email protected]
W: www.imtechict.nl
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to