add loopsRoot to module global variables
This commit is contained in:
parent
9ab3e61f9a
commit
082acf3fbc
1 changed files with 4 additions and 3 deletions
7
psu.py
7
psu.py
|
@ -5,8 +5,9 @@
|
||||||
#
|
#
|
||||||
# then:
|
# then:
|
||||||
#
|
#
|
||||||
# from loops import psu
|
# from cco.common import psu
|
||||||
# psu.setup(root)
|
# from custom.config import myproject as config
|
||||||
|
# psu.setup(root, 'path/to/loopsRoot', config)
|
||||||
# obj = psu.byuid('578457950')
|
# obj = psu.byuid('578457950')
|
||||||
#
|
#
|
||||||
|
|
||||||
|
@ -38,7 +39,7 @@ os.environ['NLS_LANG'] = 'German_Germany.UTF8'
|
||||||
sc = Jeep() # shortcuts
|
sc = Jeep() # shortcuts
|
||||||
|
|
||||||
def setup(root, loopsRootPath=[], config=None):
|
def setup(root, loopsRootPath=[], config=None):
|
||||||
global sm, smdefault, catalog, intids, pau, sc
|
global sm, smdefault, intids, pau, loopsRoot, sc
|
||||||
setSite(root)
|
setSite(root)
|
||||||
sm = component.getSiteManager(root)
|
sm = component.getSiteManager(root)
|
||||||
smdefault = sm['default']
|
smdefault = sm['default']
|
||||||
|
|
Loading…
Add table
Reference in a new issue