-
Bug
-
Resolution: Done
-
Major
-
2.5.0.B2
-
None
def _find_config_file(): confname = 'connect.json' confpath = ['.', '~/.config/messaging','/etc/messaging'] for d in confpath: f = os.path.join(d, confname) if os.path.isfile(f): return f return None
os.path.isfile does not expand tilde (~) as HOME directory, but as directory named tilde (~) in current location.
There should be probably something like:
os.path.isfile(os.path.expanduser(f))
- relates to
-
ENTMQCL-753 [python] Read a config file to get default connection parameters (Linux)
- Closed
-
ENTMQCL-1287 [python] Read a config file to get default connection parameters (Windows)
- Closed