def show_image(file_path):
 if (sys.version_info >= (3, 3)):
  from shlex import quote
 else:
  from pipes import quote
 if (sys.platform == 'darwin'):
  command = ('open -a /Applications/Preview.app %s&' % quote(file_path))
  os.system(command)
 else:
  webbrowser.open(os.path.join(os.getcwd(), 'temp', file_path))

def show_image ( file_path ) : if ( sys . version_info >= ( 3 , 3 ) ) : from shlex import quote else : from pipes import quote if ( sys . platform == 'darwin' ) : command = ( 'open -a /Applications/Preview.app %s&' % quote ( file_path ) ) os . system ( command ) else : webbrowser . open ( os . path . join ( os . getcwd ( ) , 'temp' , file_path ) )
show the details from aliyun image .