mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-31 01:38:08 -05:00
Make paster run use execfile so stack traces are useful.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user