git @ Cat's Eye Technologies kinoje / 6e94aae
Fix bug with libdir when the yaml file is in the current directory. Chris Pressey 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3535 with open(filename, 'r') as file_:
3636 config = yaml.load(file_, Loader=Loader)
3737
38 config['libdir'] = os.path.dirname(filename)
38 config['libdir'] = os.path.dirname(filename) or '.'
3939
4040 config['start'] = float(config.get('start', 0.0))
4141 config['stop'] = float(config.get('stop', 1.0))