Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store attribute: associate store path? #33

Open
yohplala opened this issue Jan 6, 2020 · 1 comment
Open

Store attribute: associate store path? #33

yohplala opened this issue Jan 6, 2020 · 1 comment

Comments

@yohplala
Copy link

yohplala commented Jan 6, 2020

Hello,

Thanks a lot for this terrific library.
I am starting using it, and when I initialize the store, as given in the tutorial, I have these 2 lines:

    # Set storage path
    pystore.set_path(my_path)
    # Connect to datastore (create it if not exist)
    store = pystore.store(my_store_name)

I would like to know how is managed the path variable: is it attached to the store?
It seems to me, it is an attribute that defines the store.
Shouldn't we have it directly given to create or connect the store?

    # Connect to datastore (create it if not exist) with store name & its location
    store = pystore.store(my_path, my_store_name)

I thank you in advance for sharing your feeling about it.
Have a good day,
Bests,
Pierre

@ghost
Copy link

ghost commented Aug 14, 2020

import os
pystore.store(os.path.join(my_path, my_store_name))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant