nucypher / zerodb

*This project is no longer actively maintained. If you'd like to become the maintainer, please let us know.* ZeroDB is an end-to-end encrypted database. Data can be stored and queried on untrusted database servers without ever exposing the encryption key. Clients can execute remote queries against the encrypted data without downloading all of it or suffering an excessive performance hit.
GNU Affero General Public License v3.0
1.56k stars 102 forks source link

Editing while reading #45

Closed jean closed 8 years ago

jean commented 8 years ago

Assuming I'm in the demo directory, unless I append '.' to my path, import fails.

This feels rather hacky, is there a better way?

michwill commented 8 years ago

That is very strange. I cannot reproduce this (import doesn't fail in ipython; using python2.7 and 3.5). I am testing in virtualenv, in Linux, but my thinking usually was that python can do 'import X' when X.py is in current directory.

jean commented 8 years ago

Yes, that's what I expect too. I'll check some more.

J On 14 Jul 2016 11:53 am, "Michael Egorov" notifications@github.com wrote:

That is very strange. I cannot reproduce this (import doesn't fail in ipython; using python2.7 and 3.5). I am testing in virtualenv, in Linux, but my thinking usually was that python can do 'import X' when X.py is in current directory.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zerodb/zerodb/pull/45#issuecomment-232556191, or mute the thread https://github.com/notifications/unsubscribe/AAFLQNuZyk99IwHsAKqFRPHSYVjPWI7fks5qVcCsgaJpZM4JMFAL .

jean commented 8 years ago

@michwill the sys.path issue only shows up when trying to execute the example while in the zerodb-manage console. I've updated the PR.