Skip to content

Commit 0c201c0

Browse files
committed
Update random_number.py
- added import statement so we can use splunklib from lib directory
1 parent 2516a45 commit 0c201c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/random_numbers/random_numbers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
from __future__ import absolute_import
1818
import random, sys
19+
import os
20+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib"))
1921

2022
from splunklib.modularinput import *
2123
from splunklib import six

0 commit comments

Comments
 (0)