diff --git a/impra-cli.py b/impra-cli.py index 3149b4f..cd9490c 100755 --- a/impra-cli.py +++ b/impra-cli.py @@ -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 diff --git a/impra/app.py b/impra/app.py index 3fd84e4..7e0564f 100755 --- a/impra/app.py +++ b/impra/app.py @@ -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 : diff --git a/impra/cli.py b/impra/cli.py index e8e8b89..eb63366 100755 --- a/impra/cli.py +++ b/impra/cli.py @@ -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': diff --git a/impra/cliapp.py b/impra/cliapp.py index a8ba68f..ba5dfd7 100755 --- a/impra/cliapp.py +++ b/impra/cliapp.py @@ -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') diff --git a/impra/core.py b/impra/core.py index 1a9cb6d..b73bf34 100755 --- a/impra/core.py +++ b/impra/core.py @@ -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),