You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
463 B
Python
22 lines
463 B
Python
1 year ago
|
import os
|
||
|
|
||
|
'''
|
||
|
Plugin handler for the liss plugin.
|
||
|
'''
|
||
|
class SeedlinkPluginHandler:
|
||
|
# Create defaults
|
||
|
def __init__(self): pass
|
||
|
|
||
|
def push(self, seedlink):
|
||
|
# Check and set defaults
|
||
|
dir = os.path.join(seedlink.config_dir, "indata")
|
||
|
try: address = seedlink.param('sources.mseedscan.dir')
|
||
|
except: seedlink.setParam('sources.mseedscan.dir', dir)
|
||
|
|
||
|
# key is directory
|
||
|
return dir
|
||
|
|
||
|
# Flush does nothing
|
||
|
def flush(self, seedlink):
|
||
|
pass
|