{"action":"created","issue":{"url":"https://api.github.com/repos/PyCQA/pylint/issues/795","labels_url":"https://api.github.com/repos/PyCQA/pylint/issues/795/labels{/name}","comments_url":"https://api.github.com/repos/PyCQA/pylint/issues/795/comments","events_url":"https://api.github.com/repos/PyCQA/pylint/issues/795/events","html_url":"https://github.com/PyCQA/pylint/issues/795","id":128511290,"number":795,"title":"Pylint doesn't find relative imports","user":{"login":"fnkr","id":616991,"avatar_url":"https://avatars.githubusercontent.com/u/616991?v=3","gravatar_id":"","url":"https://api.github.com/users/fnkr","html_url":"https://github.com/fnkr","followers_url":"https://api.github.com/users/fnkr/followers","following_url":"https://api.github.com/users/fnkr/following{/other_user}","gists_url":"https://api.github.com/users/fnkr/gists{/gist_id}","starred_url":"https://api.github.com/users/fnkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnkr/subscriptions","organizations_url":"https://api.github.com/users/fnkr/orgs","repos_url":"https://api.github.com/users/fnkr/repos","events_url":"https://api.github.com/users/fnkr/events{/privacy}","received_events_url":"https://api.github.com/users/fnkr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-25T10:59:17Z","updated_at":"2016-02-02T14:48:10Z","closed_at":null,"body":"When using relative imports like\r\n\r\n```\r\nfrom ..user.models import User\r\n```\r\n\r\nI get these two errors:\r\n\r\n- No name 'user' in module 'models'\r\n- Unable to import 'user.models'\r\n\r\n```\r\n$ pylint --version\r\nNo config file found, using default configuration\r\npylint 1.5.4, \r\nastroid 1.4.4\r\nPython 2.7.6 (default, Jun 22 2015, 17:58:13) \r\n[GCC 4.8.2]\r\n```"},"comment":{"url":"https://api.github.com/repos/PyCQA/pylint/issues/comments/178608956","html_url":"https://github.com/PyCQA/pylint/issues/795#issuecomment-178608956","issue_url":"https://api.github.com/repos/PyCQA/pylint/issues/795","id":178608956,"user":{"login":"fnkr","id":616991,"avatar_url":"https://avatars.githubusercontent.com/u/616991?v=3","gravatar_id":"","url":"https://api.github.com/users/fnkr","html_url":"https://github.com/fnkr","followers_url":"https://api.github.com/users/fnkr/followers","following_url":"https://api.github.com/users/fnkr/following{/other_user}","gists_url":"https://api.github.com/users/fnkr/gists{/gist_id}","starred_url":"https://api.github.com/users/fnkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnkr/subscriptions","organizations_url":"https://api.github.com/users/fnkr/orgs","repos_url":"https://api.github.com/users/fnkr/repos","events_url":"https://api.github.com/users/fnkr/events{/privacy}","received_events_url":"https://api.github.com/users/fnkr/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T14:48:10Z","updated_at":"2016-02-02T14:48:10Z","body":"My IDE is running Pylint while the file is still unsaved, and for that reason, the IDE is copying the file into a temporary directory. That's the reason Pylint doesn't find the relative imports. Is there any parameter I could use, to tell Pylint the actual location of the file, or does Pylint support read from stdin?"}}