.
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
"""Django's command-line utility for administrative tasks."""
|
||||
import os
|
||||
import sys
|
||||
import pathlib
|
||||
|
||||
# Ensure the repository root is on sys.path so top-level modules (e.g.
|
||||
# `rota_generator` or `rota`) are importable when running Django from
|
||||
# the `djangorota/` directory.
|
||||
repo_root = pathlib.Path(__file__).resolve().parents[1]
|
||||
if str(repo_root) not in sys.path:
|
||||
sys.path.insert(0, str(repo_root))
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user