Skip to content

Commit

Permalink
revert: Rollback extensions sandboxed execution
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlin7 committed Jul 11, 2023
1 parent 5160654 commit 0bda861
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions biscuit/core/components/extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ def __init__(self, base):
self.extensions = {}
self.run_finished = {}

#TODO file watcher for extensions directory
# #TODO file watcher for extensions directory

self.blocked_modules = ['os', 'sys']
self.imports = {module: __import__(module) for module in sys.modules}
sys.modules['builtins'].__import__ = self.restricted_import
# self.blocked_modules = ['os', 'sys']
# self.imports = {module: __import__(module) for module in sys.modules}
# sys.modules['builtins'].__import__ = self.restricted_import

self.load_extensions()

Expand Down

0 comments on commit 0bda861

Please sign in to comment.