From 6538500881a771d7f3c1e400a9f2f5473405c8a5 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Thu, 11 Mar 2021 15:57:04 +0100 Subject: [PATCH] more fixes for sea Change-Id: I195bcdbe5f6b274e65dd431ed13a123c74a8d5bf --- secop_psi/sea.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/secop_psi/sea.py b/secop_psi/sea.py index 8cad3998..b90a19f1 100644 --- a/secop_psi/sea.py +++ b/secop_psi/sea.py @@ -36,7 +36,7 @@ import json import threading import time import os -from os.path import expanduser, join +from os.path import expanduser, join, exists from secop.client import ProxyClient from secop.datatypes import ArrayOf, BoolType, \ @@ -45,7 +45,7 @@ from secop.errors import ConfigError, HardwareError, secop_error from secop.lib import getGeneralConfig, mkthread from secop.lib.asynconn import AsynConn, ConnectionClosed from secop.modules import Attached, Command, Done, Drivable, \ - Module, Parameter, Property, Readable, Writable + Module, Parameter, Readable, Writable from secop.protocol.dispatcher import make_update CFG_HEADER = """[NODE] @@ -69,7 +69,7 @@ remote_paths = . SEA_DIR = expanduser('~/sea') for confdir in getGeneralConfig()['confdir'].split(os.pathsep): seaconfdir = join(confdir, 'sea') - if os.exists(seaconfdir): + if exists(seaconfdir): break else: seaconfdir = None