From 5a67e433cb459165e44dab6c5c74415e8404d1c4 Mon Sep 17 00:00:00 2001 From: climbfuji Date: Thu, 29 Aug 2019 07:59:59 -0600 Subject: [PATCH] scripts/mkstatic.py: add missing guard for filepath being empty --- scripts/mkstatic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mkstatic.py b/scripts/mkstatic.py index d167c2e4..d95c5865 100755 --- a/scripts/mkstatic.py +++ b/scripts/mkstatic.py @@ -357,7 +357,7 @@ def write(self): def write_sourcefile(self, source_filename): success = True filepath = os.path.split(source_filename)[0] - if not os.path.isdir(filepath): + if filepath and not os.path.isdir(filepath): os.makedirs(filepath) f = open(source_filename, 'w') contents = """# The CCPP static API is defined here.