kindle manager

This commit is contained in:
douboer
2020-06-30 12:06:07 +08:00
parent 6aed9982f6
commit 338e83ab25
27 changed files with 82164 additions and 77 deletions

View File

@@ -579,12 +579,10 @@ class kMan:
#serr = str(stream_stderr.read())
#if sout: print('stdout {}'.format(sout))
#if serr: print('stderr {}'.format(serr))
print('os.name {} sout {}'.format(os.name,sout))
if os.name == 'nt': # windows
for d in sout.split('\n'):
if 'Kindle' in d:
p = re.split(r'\s+',d)[0]
print('path {}'.format(p))
return p
elif os.name == 'posix': # mac os
if sout: return('/Volumes/Kindle/')