summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--doc/whatsnew/2.11.rst4
-rw-r--r--pylint/config/__init__.py2
3 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c16702cee..0ab7ee69d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -73,6 +73,10 @@ Release date: TBA
Closes #4901
+* Fix a bug where pylint complained if the cache's parent directory does not exist
+
+ Closes #4900
+
What's New in Pylint 2.10.3?
============================
diff --git a/doc/whatsnew/2.11.rst b/doc/whatsnew/2.11.rst
index 6a9ed6686..8dfcbf691 100644
--- a/doc/whatsnew/2.11.rst
+++ b/doc/whatsnew/2.11.rst
@@ -75,3 +75,7 @@ Other Changes
* Setting ``min-similarity-lines`` to 0 now makes the similarty checker stop checking for duplicate code
Closes #4901
+
+* Fix a bug where pylint complained if the cache's parent directory does not exist
+
+ Closes #4900
diff --git a/pylint/config/__init__.py b/pylint/config/__init__.py
index a3e538124..f923a638d 100644
--- a/pylint/config/__init__.py
+++ b/pylint/config/__init__.py
@@ -125,7 +125,7 @@ def load_results(base):
def save_results(results, base):
if not os.path.exists(PYLINT_HOME):
try:
- os.mkdir(PYLINT_HOME)
+ os.makedirs(PYLINT_HOME)
except OSError:
print(f"Unable to create directory {PYLINT_HOME}", file=sys.stderr)
data_file = _get_pdata_path(base, 1)