more fixes for sea
Change-Id: I195bcdbe5f6b274e65dd431ed13a123c74a8d5bf
This commit is contained in:
parent
3435107948
commit
330aa15400
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user