There are two options I’m aware of.
One, change the PYTHONPATH
environment variable to include the directory above your module.
Alternatively, edit ~/.pylintrc
to include the directory above your module, like this:
[MASTER] init-hook='import sys; sys.path.append("/path/to/root")'
(Or in other version of pylint, the init-hook requires you to change [General] to [MASTER])
Both of these options ought to work.
Hope that helps.
Related Posts:
- How do I update\upgrade pip itself from inside my virtual environment?
- How do I update\upgrade pip itself from inside my virtual environment?
- How to uninstall a package installed with pip install –user
- Permanently add a directory to PYTHONPATH?
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- Using Python 3 in virtualenv
- Where does pip install its packages?
- Where does pip install its packages?
- How to activate an Anaconda environment
- No acceptable C compiler found in $PATH when installing python
- Updating matplotlib in virtualenv with pip
- How to activate virtualenv in Linux?
- How do I find out my PYTHONPATH using Python?
- ImportError: No module named ‘encodings’
- No module named pkg_resources
- What is the purpose of “pip install –user …”?
- How to leave/exit/deactivate a Python virtualenv
- What is the easiest way to remove all packages installed by pip?
- django import error – No module named core.management
- Effect of using sys.path.insert(0, path) and sys.path(append) when loading modules
- Is it possible to ignore one single specific line with Pylint?
- What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?
- Pylint “unresolved import” error in Visual Studio Code
- Virtualenv Command Not Found
- Error message “Linter pylint is not installed”
- pip install -r requirements.txt [Errno 2] No such file or directory: ‘requirements.txt’
- bash: mkvirtualenv: command not found
- How do I disable “missing docstring” warnings at a file-level in Pylint?
- ImportError: No module named Crypto.Cipher
- Use different Python version with virtualenv
- How do I disable a Pylint warning?
- ‘virtualenv’ is not recognized as an internal or external command, operable program or batch file
- What’s the difference between “virtualenv” and “-m venv” in creating Virtual environments(Python)
- Issue with virtualenv – cannot activate
- No module named django but it is installed
- Unable to install boto3
- Virtualenv not compatible with this system or executable
- SyntaxError: unexpected EOF while parsing
- How do I lowercase a string in Python?
- How do I copy a file in Python?
- How can I reverse a list in Python?
- Manually raising (throwing) an exception in Python
- How do I copy a file in Python?
- can’t multiply sequence by non-int of type ‘float’
- Difference between del, remove, and pop on lists
- How can I reverse a list in Python?
- How to use the pass statement
- How to use filter, map, and reduce in Python 3
- What does enumerate() mean?
- Searching the student-t distribution table for values using python
- How to declare an array in Python?
- Does Python have a ternary conditional operator?
- Use Gif Logo For Loading Screen In Kivy
- Praw & Discord.py: The bot keep sending the same meme. I want the bot to send different meme whenever it is asked
- Pig Latin Translator
- What is the difference between Python’s list methods append and extend?
- How can I make a time delay in Python? [duplicate]
- Python – TypeError: ‘int’ object is not iterable
- TypeError: ‘int’ object is not subscriptable
- sphinx.ext.autodoc: Keeping names of constants in signature
- are there dictionaries in javascript like python?
- How do you round UP a number?
- Understanding slice notation
- Iterating over dictionaries using ‘for’ loops
- How to define a two-dimensional array?
- how to sort pandas dataframe from one column
- Why am I seeing “TypeError: string indices must be integers”?
- How do you round UP a number?
- Understanding slice notation
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- How to open a file using the open with statement
- How to emulate a do-while loop?
- How to comment out a block of code in Python [duplicate]
- Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
- Using “with open() as file” method, how to write more than once? [duplicate]
- TypeError: list indices must be integers or slices, not str
- Why there is no do while loop in python
- How do I get a substring of a string in Python?
- How do I sort a dictionary by value?
- ImportError: DLL load failed: The specified module could not be found
- How do I sort a dictionary by value?
- How to prettyprint a JSON file?
- What does the “yield” keyword do?
- ImportError: DLL load failed: The specified module could not be found
- Replacements for switch statement in Python?
- How to install pip with Python 3?
- What is the difference between rw+ and r+
- What does ** (double star/asterisk) and * (star/asterisk) do for parameters?
- Renaming column names in Pandas
- How to reset index in a pandas dataframe? [duplicate]
- pip not recognised as an internal or external command
- Correct way to write line to file?
- Python: Find in list
- Does Python have a string ‘contains’ substring method?
- Is there a “not equal” operator in Python?
- How do I update\upgrade pip itself from inside my virtual environment?
- IndexError: list index out of range and python
- How to read a file line-by-line into a list?
- Delete a column from a Pandas DataFrame
- strip(char) on a string