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:
1 parent
bd4eb89b8c
commit
a9405eaf83
1 file changed
+1
-1
@@ -6,7 +6,7 @@ class Cache(dict):
|
|||||||
def __init__(self, django_folder, database, cache_path):
|
def __init__(self, django_folder, database, cache_path):
|
||||||
self.filename = os.path.join(
|
self.filename = os.path.join(
|
||||||
cache_path,
|
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)):
|
if not os.path.exists(os.path.dirname(self.filename)):
|
||||||
|
|||||||
Reference in new issue
Block a user