In CRL Core, in alliance.conf use ALLIANCE_TOP environement variable if set.
This commit is contained in:
parent
db098db351
commit
1e21651e1e
|
@ -1,10 +1,18 @@
|
|||
# -*- Mode:Python; explicit-buffer-name: "alliance.conf<cmos>" -*-
|
||||
|
||||
import os
|
||||
from helpers.Alliance import AddMode
|
||||
from helpers.Alliance import Gauge
|
||||
|
||||
|
||||
allianceTop = '/soc/alliance'
|
||||
allianceTop = None
|
||||
if os.environ.has_key['ALLIANCE_TOP']:
|
||||
allianceTop = os.environ['ALLIANCE_TOP']
|
||||
if not os.path.isdir(allianceTop):
|
||||
allianceTop = None
|
||||
|
||||
if not allianceTop: allianceTop = '/soc/alliance'
|
||||
|
||||
cellsTop = allianceTop+'/cells/'
|
||||
|
||||
|
||||
|
|
|
@ -1,11 +1,19 @@
|
|||
# -*- Mode:Python; explicit-buffer-name: "alliance.conf<scmos_deep_018>" -*-
|
||||
|
||||
import os
|
||||
from helpers.Alliance import AddMode
|
||||
from helpers.Alliance import Gauge
|
||||
|
||||
|
||||
allianceTop = '/soc/alliance'
|
||||
cellsTop = allianceTop+'/cells'
|
||||
allianceTop = None
|
||||
if os.environ.has_key['ALLIANCE_TOP']:
|
||||
allianceTop = os.environ['ALLIANCE_TOP']
|
||||
if not os.path.isdir(allianceTop):
|
||||
allianceTop = None
|
||||
|
||||
if not allianceTop: allianceTop = '/soc/alliance'
|
||||
|
||||
cellsTop = allianceTop+'/cells/'
|
||||
|
||||
|
||||
allianceConfig = \
|
||||
|
|
Loading…
Reference in New Issue