Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip_package_creation_second_attempt #3773

Merged
merged 20 commits into from
Jun 26, 2021
Prev Previous commit
Next Next commit
sys append fixes 2
  • Loading branch information
SkalskiP committed Jun 25, 2021
commit f6128226afa8f9df675b76e2ebde65bc877c6c6b
3 changes: 2 additions & 1 deletion yolov5/models/yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
from pathlib import Path

FILE = Path(__file__).absolute()
sys.path.append(FILE.parents[1].as_posix()) # add yolov5/ to path
# appending pip package root directory to path to support legacy way of running script
sys.path.append(FILE.parent.parent.parent.as_posix())

from yolov5.models.common import *
from yolov5.models.experimental import *
Expand Down