Skip to content

Commit

Permalink
Merge pull request #651 from Trase/master
Browse files Browse the repository at this point in the history
Improved support for Windows systems
  • Loading branch information
mildbyte committed Mar 15, 2022
2 parents 3ebfc01 + bbda9e2 commit 13673d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions splitgraph/config/system_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ def get_config_file(default_return: None = None) -> Optional[str]:

valid_dirs = [os.getcwd()]

if os.environ.get("HOME", None) and os.path.isdir(
os.path.join(os.environ["HOME"], HOME_SUB_DIR)
):
valid_dirs.append(os.path.join(os.environ["HOME"], HOME_SUB_DIR))
home = os.path.expanduser("~")
directory = os.path.join(home, HOME_SUB_DIR)
if home and os.path.isdir(directory):
valid_dirs.append(directory)

explicit_dirs = get_explicit_config_file_dirs()

Expand Down

0 comments on commit 13673d8

Please sign in to comment.