Skip to content

Move the default config.cfg to $XDG_CONFIG_HOME#820

Merged
boegel merged 4 commits intoeasybuilders:developfrom
wpoely86:configcfg
Feb 9, 2014
Merged

Move the default config.cfg to $XDG_CONFIG_HOME#820
boegel merged 4 commits intoeasybuilders:developfrom
wpoely86:configcfg

Conversation

@wpoely86
Copy link
Copy Markdown
Member

The new place for config.cfg is now
$XDG_CONFIG_HOME/easybuild/config.cfg

The new place for config.cfg is now
$XDG_CONFIG_HOME/easybuild/config.cfg
@hpcugentbot
Copy link
Copy Markdown

Automatic reply from Jenkins: Can I test this?

Comment thread easybuild/tools/config.py Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the expanduser code instead of HOME. (make sure the line doesn't become too long)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem for me but why? I don't see the advantage of using expanduser over $HOME?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apparently it's the proper way to do it (eg in case one would ever use EB on windows ;). (don't blame me, someone also had to tell me ;)

@ghost ghost assigned boegel Jan 30, 2014
@boegel
Copy link
Copy Markdown
Member

boegel commented Jan 30, 2014

Jenkins: ok to test

@wpoely86
Copy link
Copy Markdown
Member Author

wpoely86 commented Feb 6, 2014

@boegel ready to merge.

@stdweird
Copy link
Copy Markdown
Contributor

stdweird commented Feb 6, 2014

@boegel ready to merge

Comment thread easybuild/tools/config.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to split this up in two lines:

xdg_config_home = os.environ.get('XDG_CONFIG_HOME', os.path.join(os.path.expanduser('~'), ".config")
newpath = os.path.join(xdg_config_home, "easybuild")

@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 8, 2014

@wpoely86: one small remark, looks good to go otherwise

@wpoely86
Copy link
Copy Markdown
Member Author

wpoely86 commented Feb 9, 2014

@boegel Done, good to go.

@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 9, 2014

@wpoely86: Thanks! Thanks for the reviews @stdweird!

boegel added a commit that referenced this pull request Feb 9, 2014
Move the default config.cfg to $XDG_CONFIG_HOME
@boegel boegel merged commit 2e6698c into easybuilders:develop Feb 9, 2014
@wpoely86 wpoely86 deleted the configcfg branch February 9, 2014 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants