-
Notifications
You must be signed in to change notification settings - Fork 97
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
Getting write permission to site directories? #161
Comments
Looks like |
@micahculpepper is basically correct, files in If your application just needs to create a data file in If your application needs write access AFTER install (IOW, the data file is going to be modified at runtime, by the application running under a user account), then |
Sorry, that came out wrong. You are correct, not "basically" — what I was trying to say was something more along the lines of, "micah's comment is pretty much the whole story". The only thing I really had to add was the bit about |
On this:
Well, yes, but that's what you said you want. If you have multiple user instances of your app sharing the same data, then that implies managing that data outside of the virtualenv — multiple separate users aren't going to be running the app from the same virtualenv, "shared venvs" aren't a thing. It just means that if you want multiple versions/configurations/etc. of your app to coexist, each with its own shared data file, then you have to manage that yourself. Something like multiple |
Sorry to ask a question in an issue, but I'm new to this and haven't had any luck asking in other places.
I'm trying to package a CLI app, and I want it to have a "site-wide" data file. In other words, I want to install it on a system, and whenever any user calls it, they'll be operating with the same set of data. I'll be doing this on Ubuntu Linux, so site_data_dir is
/usr/local/share/MyApp
. That's fine, but how do I get write permission to that directory?Also, in the event that you had two installations of the same app in two different virtualenvs, wouldn't they be using the same directories and interfere with one another?
Again, terribly sorry for using your Issues page like a Q&A, I'm just thoroughly stuck...
The text was updated successfully, but these errors were encountered: