diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-23 00:39:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-23 00:39:48 +0300 |
commit | 54343b79e67f8baf93903fbbbaccdf32ebf04560 (patch) | |
tree | 94f7258f8880450c1e54c8d9b6fe014b228b12d3 /release/scripts/io | |
parent | 2811707b927acea0223080eea59346e8e3fe2947 (diff) |
remove reload() from builtins since python3 no longer uses this.
use imp.reload now.
Should use import hooks but for now replace imp.reload with our own reload as the builtin reload was replaced before.
Diffstat (limited to 'release/scripts/io')
-rw-r--r-- | release/scripts/io/netrender/__init__.py | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/release/scripts/io/netrender/__init__.py b/release/scripts/io/netrender/__init__.py index 2ee57708fe0..2fc9e78c097 100644 --- a/release/scripts/io/netrender/__init__.py +++ b/release/scripts/io/netrender/__init__.py @@ -20,17 +20,18 @@ # To support reload properly, try to access a package var, if it's there, reload everything if "init_data" in locals(): - reload(model) - reload(operators) - reload(client) - reload(slave) - reload(master) - reload(master_html) - reload(utils) - reload(balancing) - reload(ui) - reload(repath) - reload(versioning) + import imp + imp.reload(model) + imp.reload(operators) + imp.reload(client) + imp.reload(slave) + imp.reload(master) + imp.reload(master_html) + imp.reload(utils) + imp.reload(balancing) + imp.reload(ui) + imp.reload(repath) + imp.reload(versioning) else: from netrender import model from netrender import operators |