mirror of https://git.48k.eu/ogclient
Import OgLinuxOperations only when necessary
This fixes a circular import error produced by the import of ogClient inside of OgLinuxOperations.more_events
parent
1377aceec2
commit
93bbc39d4b
|
@ -18,8 +18,6 @@ import signal
|
||||||
|
|
||||||
from src.restRequest import *
|
from src.restRequest import *
|
||||||
|
|
||||||
from src.linux.ogOperations import OgLinuxOperations
|
|
||||||
|
|
||||||
class ThreadState(Enum):
|
class ThreadState(Enum):
|
||||||
IDLE = 0
|
IDLE = 0
|
||||||
BUSY = 1
|
BUSY = 1
|
||||||
|
@ -239,6 +237,7 @@ class ogRest():
|
||||||
self.samba_config = self.CONFIG['samba']
|
self.samba_config = self.CONFIG['samba']
|
||||||
|
|
||||||
if self.mode == 'live':
|
if self.mode == 'live':
|
||||||
|
from src.linux.ogOperations import OgLinuxOperations
|
||||||
self.operations = OgLinuxOperations(self.CONFIG)
|
self.operations = OgLinuxOperations(self.CONFIG)
|
||||||
elif self.mode == 'virtual':
|
elif self.mode == 'virtual':
|
||||||
from src.virtual.ogOperations import \
|
from src.virtual.ogOperations import \
|
||||||
|
|
Loading…
Reference in New Issue