-
Notifications
You must be signed in to change notification settings - Fork 5
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
Standardize library path #1182
Labels
Milestone
Comments
I agree with that for sure, let's try to follow https://www.freedesktop.org/software/systemd/man/file-hierarchy.html as much as we can. Here's the current implementation of j.dirs class Dirs:
HOMEDIR = os.path.expanduser("~") # TODO: check homedir defined in sal.fs
BASEDIR = os.path.join(HOMEDIR, "sandbox")
BINDIR = os.path.join(BASEDIR, "bin")
CFGDIR = os.path.join(BASEDIR, "cfg") # TODO: check conflict with core.config_root..
CODEDIR = os.path.join(BASEDIR, "code")
VARDIR = os.path.join(BASEDIR, "var")
LOGDIR = os.path.join(VARDIR, "log")
JSCFGDIR = os.path.join(HOMEDIR, ".config/jumpscale")
TEMPLATEDIR = os.path.join(VARDIR, "templates")
TMPDIR = "/tmp/jumpscale" I think when revisiting we need to consider the following
if we are going to create |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Configuration files are stored at
~/.config/jumpscale
which is good standard.But then you have
~/sandbox
which is completely wrong.Jumpscale library code, etc. should be installed at
~/.local/lib
(and~/.local/bin
for binaries, if any).This would completely standardize files path and looks more like real unix package :)
The text was updated successfully, but these errors were encountered: