Skip to content
Permalink
Browse files

Fixing seabird_dir for windows.

Thanks to Uday Bhaskar for reporting this.
  • Loading branch information...
castelao committed Dec 14, 2018
1 parent 75b65cd commit cfdc048d471431ec10b5c58192775cbc9f460073
Showing with 8 additions and 1 deletion.
  1. +8 −1 seabird/utils.py
@@ -98,7 +98,14 @@ def load_rule(raw_text):


def seabird_dir(subdir=None):
return os.path.expanduser(os.getenv('SEABIRD_DIR', '~/.config/seabird'))
"""Return the local support/config directory
Returns a local directory used to store testing data. The default path
(~/.config/seabird) can be overwritten by the environment variable
SEABIRD_DIR.
"""
spath = os.getenv('SEABIRD_DIR', '~/.config/seabird')
return os.path.expanduser(spath).replace('/', os.path.sep)


def sampledata():

0 comments on commit cfdc048

Please sign in to comment.
You can’t perform that action at this time.