Skip to content

Commit

Permalink
Make paster run use execfile so stack traces are useful.
Browse files Browse the repository at this point in the history
  • Loading branch information
spladug committed Nov 30, 2011
1 parent a7bcdaa commit 4f70066
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions r2/r2/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,7 @@ def command(self):
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

0 comments on commit 4f70066

Please sign in to comment.