mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-04-24 06:54:45 +00:00
make file system case sensitive a setting
to allow docker/mac inconsistency override
This commit is contained in:
parent
51dc6bf02e
commit
013fbbbb8d
1 changed files with 3 additions and 6 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import os
|
||||
import tempfile
|
||||
from datetime import datetime
|
||||
|
||||
import django
|
||||
|
|
@ -71,11 +70,9 @@ def find_pos(lang, project_apps=True, django_apps=False, third_party_apps=False)
|
|||
)
|
||||
)
|
||||
|
||||
case_sensitive_file_system = True
|
||||
tmphandle, tmppath = tempfile.mkstemp()
|
||||
if os.path.exists(tmppath.upper()):
|
||||
# Case insensitive file system.
|
||||
case_sensitive_file_system = False
|
||||
case_sensitive_file_system = getattr(
|
||||
settings, "ROSETTA_CASE_SENSITIVE_FILESYSTEM", False
|
||||
)
|
||||
|
||||
# django/locale
|
||||
if django_apps:
|
||||
|
|
|
|||
Loading…
Reference in a new issue