Remove image open on macos (#1086)

* added option to not open on save

* Update detect.py

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
FrederikandGlenn Jocher authored and GitHub committed 2020-10-07 16:16:10 +02:00
1 parent 5b8cf247af
commit d11504aee1
1 file changed
-2
-2
View File
@@ -140,8 +140,6 @@ def detect(save_img=False):
if save_txt or save_img:
print('Results saved to %s' % Path(out))
if platform.system() == 'Darwin' and not opt.update: # MacOS
os.system('open ' + save_path)
print('Done. (%.3fs)' % (time.time() - t0))