From 3cb5f0e766d12c140a35f10544923ff1e05c9286 Mon Sep 17 00:00:00 2001 From: 2bndy5 <2bndy5@gmail.com> Date: Sun, 25 Jul 2021 01:52:22 -0700 Subject: [PATCH] use rstrip() 2 remove trailing root_path seperator --- rmskin_builder.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rmskin_builder.py b/rmskin_builder.py index 4fdf621..fa54bf2 100644 --- a/rmskin_builder.py +++ b/rmskin_builder.py @@ -318,8 +318,7 @@ def main(): args = parser.parse_args() root_path = args.path # truncate trailing path seperator - if root_path.endswith(os.sep): - root_path = root_path[:-1] + root_path = root_path.rstrip(os.sep) root_path = os.path.abspath(root_path) # The temporary build dir for storing altered files