Environment mit der Config übergeben
This commit is contained in:
+1
-4
@@ -104,12 +104,9 @@ class CadItem():
|
||||
self.gui_data = {}
|
||||
self.read_only_items = {}
|
||||
self.controller = None
|
||||
self.env = None
|
||||
|
||||
def set_controller(self, controller):
|
||||
self.controller = controller
|
||||
def set_env(self, env):
|
||||
self.environment = env
|
||||
|
||||
def set_asm_id(self, asm_id):
|
||||
self.set_gui_data("asm_id", asm_id)
|
||||
@@ -184,7 +181,7 @@ class CadItem():
|
||||
return self.gui_data
|
||||
|
||||
def sivas_data_from_csv(self, cid):
|
||||
path = os.path.join(self.environment.out_dir, cid + '.csv')
|
||||
path = os.path.join(self.controller.get_env("data"), cid + '.csv')
|
||||
if os.path.exists(path):
|
||||
data = self.load_csv(path)
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user