Skip to content

Conversation

@mavaddat
Copy link
Contributor

@mavaddat mavaddat commented Nov 7, 2021

Line 56 tries $env:HOME, $env:USERPROFILE, $env:HOMEPATH before failing to None object.

Line 56 tries `$env:HOME`, `$env:USERPROFILE`, `$env:HOMEPATH` before failing to `None` object.
import toml
configfile = path.join( \
env.get('XDG_CONFIG_HOME', path.join(env['HOME'],'.config')),
env.get('XDG_CONFIG_HOME', path.join(env.get('HOME',env.get('USERPROFILE',env.get('HOMEPATH',None))),'.config')),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here is where we want more failsafe tries.

@blind-oracle blind-oracle merged commit e6cb5f8 into blind-oracle:master Nov 14, 2021
@mavaddat mavaddat deleted the patch-1 branch November 14, 2021 15:29
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

Successfully merging this pull request may close these issues.

2 participants