Update detect.py (#629)

* Update detect.py

Update print info for relative path and absolute
otherwise the info below is misleading

Results saved to /workspace//output_path

* Update detect.py

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
hopesalaandGlenn Jocher authored and GitHub committed 2020-08-05 12:01:24 -07:00
1 parent b8f3b1b373
commit d0d3dd1040
1 file changed
+1 -1
+1 -1
View File
@@ -137,7 +137,7 @@ def detect(save_img=False):
vid_writer.write(im0)
if save_txt or save_img:
print('Results saved to %s' % os.getcwd() + os.sep + out)
print('Results saved to %s' % Path(out))
if platform == 'darwin' and not opt.update: # MacOS
os.system('open ' + save_path)