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 data file in system independent way #6

Closed
drdhaval2785 opened this issue Jan 5, 2018 · 2 comments
Closed

Store data file in system independent way #6

drdhaval2785 opened this issue Jan 5, 2018 · 2 comments

Comments

@drdhaval2785
Copy link
Owner

drdhaval2785 commented Jan 5, 2018

Currently the data is stored in the package.

package/prakriya/data/ folder.

But it will make more sense to keep them at system specific places.
https://stackoverflow.com/questions/1084697/how-do-i-store-desktop-application-data-in-a-cross-platform-way-for-python may help.

https://pypi.python.org/pypi/appdirs/1.4.0 is also an option.

@drdhaval2785
Copy link
Owner Author

The current implementation has two problems

  1. Data resides in the package directory.
  2. When the CLI is used, the location is slightly altered, so CLI script has to know the data location.

@drdhaval2785
Copy link
Owner Author

Released in v0.0.4
https://pypi.python.org/pypi/prakriya/0.0.4

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