Skip to content

Commit

Permalink
Add .as_posix() call when reading configuration files
Browse files Browse the repository at this point in the history
Ticket #29, correction suggested by @GillesOrban
Should fix potential issues when package is used on Windows. Tested on
Mac OS X without any particular issue.
  • Loading branch information
avigan committed Sep 17, 2019
1 parent 7b12e26 commit d53a72d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyzelda/zelda.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def __init__(self, instrument, **kwargs):
config = ConfigParser.ConfigParser()

try:
config.read(str(configfile))
config.read(str(configfile.as_posix()))

# mask physical parameters
self._Fratio = kwargs.get('mask_Fratio', float(config.get('mask', 'Fratio')))
Expand Down

0 comments on commit d53a72d

Please sign in to comment.