diff options
-rwxr-xr-x | calc_mass_potential.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calc_mass_potential.py b/calc_mass_potential.py index 8cfe24e..bb49501 100755 --- a/calc_mass_potential.py +++ b/calc_mass_potential.py @@ -608,8 +608,8 @@ def main(): args = parser.parse_args() config = ConfigObj(config_default.splitlines()) - if args.config != "": - config_user = ConfigObj(args.config) + if args.config is not None: + config_user = ConfigObj(open(args.config)) config.merge(config_user) ne_profile = np.loadtxt(config["ne_profile"]) |