From 3e9e9684c79194d4de61b7622875da00bb3039b3 Mon Sep 17 00:00:00 2001 From: jmorsecode Date: Wed, 24 Feb 2021 16:01:05 -0500 Subject: [PATCH] use os.path.normapth to normalize possible bad path join --- iamctl/iamctl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/iamctl/iamctl.py b/iamctl/iamctl.py index 0c73e9d..c654628 100755 --- a/iamctl/iamctl.py +++ b/iamctl/iamctl.py @@ -42,6 +42,7 @@ def fix_me_a_directory(output): os.makedirs(output_directory) return output_directory else: + output = os.path.normpath(output) return output def check_if_init():