misc: let wcsctl commands use django settings (#20394)
This commit is contained in:
parent
e693c2200e
commit
13cf85c969
|
@ -1,7 +1,10 @@
|
||||||
#! /usr/bin/env python
|
#! /usr/bin/env python
|
||||||
|
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wcs.settings")
|
||||||
|
|
||||||
import wcs.qommon.ctl
|
import wcs.qommon.ctl
|
||||||
|
|
||||||
ctl = wcs.qommon.ctl.Ctl(cmd_prefixes=['wcs.ctl'])
|
ctl = wcs.qommon.ctl.Ctl(cmd_prefixes=['wcs.ctl'])
|
||||||
|
|
Loading…
Reference in New Issue