if sea cfg not found, take from FRAPPY_SEA_DIR

This commit is contained in:
zolliker 2021-04-29 10:55:17 +02:00
parent 772f45a241
commit e638661edc

View File

@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# ***************************************************************************** # *****************************************************************************
# This program is free software; you can redistribute it and/or modify it under # This program is free software; you can redistribute it and/or modify it under
@ -79,7 +78,7 @@ for confdir in getGeneralConfig()['confdir'].split(os.pathsep):
if exists(seaconfdir): if exists(seaconfdir):
break break
else: else:
seaconfdir = None seaconfdir = os.environ.get('FRAPPY_SEA_DIR')
def get_sea_port(instance): def get_sea_port(instance):