mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
7 lines
248 B
Python
7 lines
248 B
Python
from django.conf import settings
|
|
import os
|
|
|
|
def get_project_root():
|
|
""" get the project root directory """
|
|
settings_mod = __import__(settings.SETTINGS_MODULE, {}, {}, [''])
|
|
return os.path.dirname(os.path.abspath(settings_mod.__file__))
|