Skip to content

Commit 8487d1d

Browse files
njaardCharles Samuelsyarikoptic
authored
search heuristic file path first (#434)
* search heuristic file path first This allows heuristic modules names that conflict with existing module names, such as using a heuristic module named "heudiconv.py" Co-authored-by: Charles Samuels <[email protected]> Co-authored-by: Yaroslav Halchenko <[email protected]>
1 parent 7d2c526 commit 8487d1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

heudiconv/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def load_heuristic(heuristic):
319319
path, fname = op.split(heuristic_file)
320320
try:
321321
old_syspath = sys.path[:]
322-
sys.path.append(path)
322+
sys.path.insert(0, path)
323323
mod = __import__(fname.split('.')[0])
324324
mod.filename = heuristic_file
325325
finally:

0 commit comments

Comments
 (0)