Skip to content

Commit 1a925db

Browse files
authored
Merge pull request #18 from aiven/rolling-fix
fix path issue
2 parents 13c3382 + 5210eab commit 1a925db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rolling.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
import time
33
from faker.providers import BaseProvider
44
import json
5+
import os
6+
import sys
57

68

79
nr_item = 0
810
base_timestamp = int(time.time()*1000)
9-
f = open('data_rolling.json')
11+
f = open(os.path.join(sys.path[0],'data_rolling.json'))
1012
data = json.load(f)
1113

1214
# Adding a RollingProvider with 1 method:

0 commit comments

Comments
 (0)