Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Dec 5, 2023
1 parent 88cacf6 commit 10f393e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/dataclasses/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def run_tests():

def main():
"""Run administrative tasks based on command line arguments."""
sys.path.insert(0, os.path.abspath(os.path.join("..", "..")))
sys.path.insert(0, os.path.abspath("."))
parser = argparse.ArgumentParser(
description="Management script for the project."
Expand Down
1 change: 1 addition & 0 deletions examples/django/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

def main():
"""Run administrative tasks."""
sys.path.insert(0, os.path.abspath(os.path.join("..", "..")))
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "blog.settings")
try:
from django.core.management import execute_from_command_line
Expand Down
1 change: 1 addition & 0 deletions examples/pydantic/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def run_tests():

def main():
"""Run administrative tasks based on command line arguments."""
sys.path.insert(0, os.path.abspath(os.path.join("..", "..")))
sys.path.insert(0, os.path.abspath("."))
parser = argparse.ArgumentParser(
description="Management script for the project."
Expand Down
1 change: 1 addition & 0 deletions examples/tortoise/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ async def init():

def main():
"""Run administrative tasks."""
sys.path.insert(0, os.path.abspath(os.path.join("..", "..")))
sys.path.insert(0, os.path.abspath("."))
run_async(init())

Expand Down

0 comments on commit 10f393e

Please sign in to comment.