From ea5fcb0dfe4c320a0b55d288fbf82327bdc0c138 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 23 Apr 2019 15:49:25 +0200 Subject: [PATCH] Read '_rust2rpm.conf' as well OBS doesn't allow importing files starting with `.` so we need another file name. Signed-off-by: Igor Gnatenko Reviewed-by: Neal Gompa --- rust2rpm/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust2rpm/__main__.py b/rust2rpm/__main__.py index cbb3a22..9a086dc 100644 --- a/rust2rpm/__main__.py +++ b/rust2rpm/__main__.py @@ -318,7 +318,7 @@ def main(): kwargs["license_comments"] = comments conf = configparser.ConfigParser(interpolation=configparser.ExtendedInterpolation()) - conf.read(".rust2rpm.conf") + conf.read(["_rust2rpm.conf", ".rust2rpm.conf"]) if args.target not in conf: conf.add_section(args.target)