Skip to content

Commit 5210eab

Browse files
committed
fix path issue
1 parent 4c72ccd commit 5210eab

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)