Skip to content

Commit d75742c

Browse files
committed
Pull imports from cwd first
1 parent 1004f98 commit d75742c

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

utils/rate.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import utils
12
from ltr.helpers.esUrlParse import parseUrl
23
from ltr.judgments import Judgment, judgments_from_file, judgments_to_file, judgments_by_qid
34
from elasticsearch import Elasticsearch, TransportError

utils/train_to_csv.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import utils
12
from ltr.judgments import judgments_from_file
23
from ltr.client import ElasticClient
34
import csv

utils/utils.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import os
2+
import sys
3+
4+
sys.path.append(os.getcwd())

0 commit comments

Comments
 (0)