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

Replace HOME environment variable access to be more multiplatform #204

Open
talister opened this issue Sep 26, 2024 · 0 comments
Open

Replace HOME environment variable access to be more multiplatform #204

talister opened this issue Sep 26, 2024 · 0 comments

Comments

@talister
Copy link

Describe the issue
On Windows systems, the HOME environment variable is not set or available and so the

_ROOTDIR = os.path.join(os.environ["HOME"], ".finkclient")

in fink_client\configuration.py will not work. This can be easily replaced by:

_ROOTDIR = os.path.join(os.path.expanduser('~'), ".finkclient")

which is multi-platform and works on Windows, Mac OS X and Linux. (See 2nd part of this SO answer)

System Information:

  • Operating System: [Windows 11]:
  • Fink client version: [8.7]
  • Occurred on which branch and with what commit: [master-9903e97]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant