feat: Support Path type for project_root_path

Django has switched to using pathlib.Path in startproject. This adds support for these in the project root path config option.
This commit is contained in:
Sondre Lillebø Gundersen authored and David Wobrock committed 2022-11-03 22:00:00 +01:00
1 parent bd4eb89b8c
commit a9405eaf83
1 file changed
+1 -1
+1 -1
View File
@@ -6,7 +6,7 @@ class Cache(dict):
def __init__(self, django_folder, database, cache_path):
self.filename = os.path.join(
cache_path,
"{}_{}.pickle".format(django_folder.replace(os.sep, "_"), database),
"{}_{}.pickle".format(str(django_folder).replace(os.sep, "_"), database),
)
if not os.path.exists(os.path.dirname(self.filename)):