Skip to content

Commit

Permalink
scripts/mkstatic.py: add missing guard for filepath being empty
Browse files Browse the repository at this point in the history
  • Loading branch information
climbfuji committed Oct 9, 2019
1 parent 6dc90b3 commit 5a67e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mkstatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5a67e43

Please sign in to comment.