diff --git a/secop_psi/sea.py b/secop_psi/sea.py index 8cad399..b90a19f 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