bugfix working dir path
This commit is contained in:
parent
7fc5bc4753
commit
e69fdc5207
|
@ -34,7 +34,7 @@ from impra.cli import Cli
|
|||
def main():
|
||||
try:
|
||||
c = 0
|
||||
Cli('.'+Sys.sep)
|
||||
Cli('.'+Sys.sep+'wk'+Sys.sep)
|
||||
except Exception as e :
|
||||
Sys.pwarn((('main : ',(str(e),Sys.CLZ_ERROR_PARAM), ' !'),), True)
|
||||
raise e
|
||||
|
|
|
@ -121,7 +121,7 @@ class ImpraThread(Thread, IdleObject):
|
|||
(label.ljust(Const.LINE_SEP_LEN, ' ') , Const.CLZ_INIT , True),
|
||||
(Const.LINE_SEP_CHAR*Const.LINE_SEP_LEN , Const.CLZ_0 , True)])
|
||||
|
||||
self.impst = ImpraStorage(self.conf)
|
||||
self.impst = ImpraStorage(self.conf, wkdir='.'+Sys.sep+'wk'+Sys.sep)
|
||||
|
||||
done = True
|
||||
except Exception as e :
|
||||
|
|
|
@ -116,7 +116,6 @@ class Cli(AbstractCli):
|
|||
Cli.print_help()
|
||||
|
||||
elif a[0] in ['add','conf','import','info', 'edit','export','get','list','remove','search'] :
|
||||
|
||||
app = CliApp(self.HOME, path, self.parser, Cli, a, o)
|
||||
|
||||
if a[0]=='add':
|
||||
|
|
|
@ -73,7 +73,7 @@ class CliApp:
|
|||
else :
|
||||
if not (len(self.a)>0 and self.a[0]=='conf') :
|
||||
self.ini = KiniFile('impra2.ini')
|
||||
self.impst = ImpraStorage(ImpraConf(self.ini))
|
||||
self.impst = ImpraStorage(ImpraConf(self.ini),wkdir=path)
|
||||
self.uid = self.impst.idxu.conf.get('uid' ,'index')
|
||||
self.date = self.impst.idxu.conf.get('date','index')
|
||||
self.account = self.impst.idxu.conf.get('user','imap')
|
||||
|
|
|
@ -467,7 +467,7 @@ class ImpraStorage:
|
|||
done = False
|
||||
if len(ids) >= row[self.idxu.index.PARTS]:
|
||||
for i, uid in enumerate(ids):
|
||||
d = Sys.datetime.now()
|
||||
d = Sys.datetime.now()
|
||||
self.idxu.ih.getAttachment(uid, self.inbox, True)
|
||||
|
||||
Sys.pwlog([(' part ' , Const.CLZ_0),
|
||||
|
|
Loading…
Reference in New Issue
Block a user