Skip to content

Commit

Permalink
normal imports in __main__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasmohrin committed Dec 2, 2024
1 parent 354a5c1 commit ee6a6e3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions evap/__main__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#!/usr/bin/env python3

import os
import sys


def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "evap.settings")
from django.core.management import execute_from_command_line

from django.core.management import execute_from_command_line

def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "evap.settings")
execute_from_command_line(sys.argv)


Expand Down

0 comments on commit ee6a6e3

Please sign in to comment.