mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-05 13:14:46 +02:00

It's useful if the script is executable so we don't have to specify python on the command line. We also only need one shebang line (not sure how we ended up with two) and it should point to python3. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
20 lines
428 B
Python
Executable File
20 lines
428 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
# layerindex-web - Django management script
|
|
#
|
|
# Based on the Django project template
|
|
#
|
|
# Copyright (c) Django Software Foundation and individual contributors.
|
|
# All rights reserved.
|
|
|
|
import os
|
|
import sys
|
|
|
|
if __name__ == "__main__":
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
|
|
|
|
from django.core.management import execute_from_command_line
|
|
|
|
execute_from_command_line(sys.argv)
|
|
|