did some things Philip told me to do (postResults for spectral files is now working without MSC installation)
This commit is contained in:
parent
003b0def46
commit
3c944e79fa
|
@ -648,10 +648,12 @@ for release,subdirs in sorted(releases.items(),reverse=True):
|
||||||
try:
|
try:
|
||||||
from py_mentat import *
|
from py_mentat import *
|
||||||
except:
|
except:
|
||||||
if options.filetype == 'marc':
|
if options.filetype.lower() == 'marc':
|
||||||
print('no valid Mentat release found in %s'%MSCpath)
|
print('no valid Mentat release found in %s'%MSCpath)
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
else:
|
||||||
|
def post_open():
|
||||||
|
return True
|
||||||
|
|
||||||
bg = backgroundMessage()
|
bg = backgroundMessage()
|
||||||
bg.start()
|
bg.start()
|
||||||
|
@ -702,7 +704,7 @@ for what in me:
|
||||||
print "'%s' not found in <%s>"%(me[what], what)
|
print "'%s' not found in <%s>"%(me[what], what)
|
||||||
print '\n'.join(map(lambda x:' '+x, outputFormat[what]['specials']['brothers']))
|
print '\n'.join(map(lambda x:' '+x, outputFormat[what]['specials']['brothers']))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
p = OpenPostfile(filename,options.filetype)
|
p = OpenPostfile(filename,options.filetype)
|
||||||
stat = ParsePostfile(p, filename, outputFormat)
|
stat = ParsePostfile(p, filename, outputFormat)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue