django-language-server/python/djls/installed_apps_check.py
Josh Thomas fce343f44d
add djls-django crate (#6)
* add djls-django crate

* rework

* oops

* add check for GDAL and GeoDjango

* lots of things

* remove unused scripts

* move scripts to dedicated mod and make static consts

* inline gdal check

* rename mod

* rename mod

* move server info to consts

* adjust pyproject

* hide rustfmt config

* simplify django setup

* adjust printing
2024-12-07 16:02:48 -06:00

9 lines
196 B
Python

from __future__ import annotations
import json
import sys
from django.conf import settings
if __name__ == "__main__":
print(json.dumps({"has_app": sys.argv[1] in settings.INSTALLED_APPS}))