Make paster run use execfile so stack traces are useful.

This commit is contained in:
Neil Williams
2011-11-29 16:50:27 -08:00
parent a7bcdaa25f
commit 4f70066a08

View File

@@ -100,12 +100,7 @@ class RunCommand(command.Command):
loaded_namespace = {}
if self.args[1:]:
cmd = self.args[1]
f = open(cmd);
data = f.read()
f.close()
exec data in loaded_namespace
execfile(self.args[1], loaded_namespace)
if self.options.command:
exec self.options.command in loaded_namespace