pylint-bot / test

0 stars 0 forks source link

Manual sys.path modification #164

Closed pylint-bot closed 8 years ago

pylint-bot commented 8 years ago

Originally reported by: BitBucket: harut, GitHub: @harut?


We have manual sys.path modification as a part of our project configuration.

#!python

def path_config():
    for path in [THIRD_PARTY_DIR]:
        if path not in sys.path:
            sys.path.insert(0, path)

Right now pylint can not understand what is going on and returns an error:

Unable to import '%packagename%' (import-error)

It would be nice to understand this kind of things, or have a method to manually add a path to pylint.


pylint-bot commented 8 years ago

Original comment by BitBucket: harut, GitHub: @harut?:


copied to pylint