Fix module load and reload

This commit is contained in:
nemunaire 2014-11-13 21:38:18 +01:00
commit fd5fbf6c6c
3 changed files with 19 additions and 7 deletions

View file

@ -16,7 +16,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import imp
import logging
import os
@ -130,5 +129,4 @@ def load_file(filename, context):
# Unexisting file, assume a name was passed, import the module!
else:
tt = __import__(filename)
imp.reload(tt)
context.import_module(filename)