mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 10:35:20 -04:00
Modify rtf2xml debug parameters
This commit is contained in:
@@ -81,9 +81,9 @@ class RTFInput(InputFormatPlugin):
|
||||
run_lev = 1
|
||||
if debug_dir is not None:
|
||||
try:
|
||||
debug_dir = os.path.abspath(os.path.normpath(debug_dir + u'/rtfdebug/'))
|
||||
os.makedirs(debug_dir)
|
||||
run_lev = 6
|
||||
debug_dir = os.path.normpath('rtfdebug/')
|
||||
os.mkdir(debug_dir)
|
||||
run_lev = 4
|
||||
except OSError, ( errno, strerror ):
|
||||
print strerror
|
||||
print errno
|
||||
|
||||
Reference in New Issue
Block a user