Skip to content

Commit d53791f

Browse files
author
Shakeel Mohamed
committed
Create build directory if it doesn't exist when building modular input SPL files
1 parent 065cc7b commit d53791f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def run(self):
9494
splunklib_dir = "splunklib"
9595
modinput_dir = os.path.join(splunklib_dir, "modularinput")
9696

97+
if not os.path.exists("build"):
98+
os.makedirs("build")
99+
97100
for app in app_names:
98101
with closing(tarfile.open(os.path.join("build", app + ".spl"), "w")) as spl:
99102
spl.add(

0 commit comments

Comments
 (0)