mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 21:01:36 +00:00
Phase 3 complete
This commit is contained in:
@@ -12,17 +12,7 @@ from gamlib import glglobals as GM
|
||||
from gamlib import glmsgs as Msg
|
||||
|
||||
|
||||
class _InstanceProxy:
|
||||
"""Lazy proxy that delegates attribute access to a named instance in the gam module."""
|
||||
def __init__(self, name):
|
||||
self._name = name
|
||||
def __getattr__(self, attr):
|
||||
return getattr(getattr(sys.modules['gam'], self._name), attr)
|
||||
|
||||
Act = _InstanceProxy('Act')
|
||||
Ind = _InstanceProxy('Ind')
|
||||
|
||||
|
||||
from gam.var import Act, Ind
|
||||
from util.output import (
|
||||
currentCountNL,
|
||||
formatKeyValueList,
|
||||
|
||||
Reference in New Issue
Block a user