Python "constructor not accessible in restricted mode" -


this has been driving me crazy, on , off, few months.
i'm developing addon module kodi (formerly xbmc), exclusively python.

whenever try open file, so:

file = open(self.msg_bdy_props["filename"], "r") 

this exception thrown:

ioerror: file() constructor not accessible in restricted mode 

from i've read, restricted mode of python era long past. there still parts of lingering around? can't work around time, , need open , read files.
idea might happening , how around issue? thanks!


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -