Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> file_url = 'file://' + os.path.realpath('test.html')

You have to encode the file name!

  file_url = 'file://' + urllib.parse.quote(os.path.realpath('test.html'))


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: