Skip to content
Snippets Groups Projects
Commit cc84d32d authored by Tomas Farago's avatar Tomas Farago
Browse files

patch isOnLbsram. Scan could be a str or a TomoscanBase

parent 35c2e4b9
Branches 0_5_1
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ class DataListener(SingleProcess):
_output_desc(name='data', type=TomwerScanBase, doc='scan path'),
]
TIMOUT_READ_FILE = 10
TIMOUT_READ_FILE = 40
"When the event 'scan_ended' is received all data might not have been write" \
" yet"
......
......@@ -61,7 +61,10 @@ def isOnLbsram(scan=None):
elif scan is None:
return os.path.isdir(get_lbsram_path())
else:
return os.path.abspath(scan.path).startswith(__LBSRAM_PATH)
if isinstance(scan, str):
return os.path.abspath(scan).startswith(__LBSRAM_PATH)
else:
return os.path.abspath(scan.path).startswith(__LBSRAM_PATH)
def get_lbsram_path():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment