misc: let wcsctl commands use django settings (#20394)

This commit is contained in:
Frédéric Péters 2017-12-01 17:40:40 +01:00
parent e693c2200e
commit 13cf85c969
1 changed files with 3 additions and 0 deletions

View File

@ -1,7 +1,10 @@
#! /usr/bin/env python
import os
import sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wcs.settings")
import wcs.qommon.ctl
ctl = wcs.qommon.ctl.Ctl(cmd_prefixes=['wcs.ctl'])