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>
pull/1098/head
Frederik 2020-10-07 16:16:10 +02:00 committed by GitHub
parent 5b8cf247af
commit d11504aee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

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))