Skip to content

Commit

Permalink
fix: pass extra_search path (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
numb3r3 authored Apr 21, 2022
1 parent e3d4e91 commit 2558d73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions server/clip_server/__main__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import sys

import os
import inspect
from jina import Flow

if __name__ == '__main__':
f = Flow.load_config('torch-flow.yml' if len(sys.argv) == 1 else sys.argv[1])
f = Flow.load_config(
'torch-flow.yml' if len(sys.argv) == 1 else sys.argv[1],
extra_search_paths=[os.path.dirname(inspect.getfile(inspect.currentframe()))],
)
with f:
f.block()

0 comments on commit 2558d73

Please sign in to comment.