print(__file__)

# custom callbacks

import APS_BlueSky_tools.callbacks

# collect last scan's documents into doc_collector.documents
doc_collector = APS_BlueSky_tools.callbacks.DocumentCollectorCallback()
callback_db['doc_collector'] = RE.subscribe(doc_collector.receiver)

#specwriter = APS_BlueSky_tools.filewriters.SpecWriterCallback()
#specwriter.newfile(os.path.join("/tmp", specwriter.spec_filename))
#callback_db['specwriter'] = RE.subscribe(specwriter.receiver)
#print("SPEC data file:", specwriter.spec_filename)
