Skip to content

Commit

Permalink
update util for pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
slackhappy committed Sep 4, 2013
1 parent 01dbbbd commit f254e7c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/carbon/util.py
@@ -1,6 +1,7 @@
import sys
import os
import pwd
import __builtin__

from os.path import abspath, basename, dirname, join
try:
Expand Down Expand Up @@ -50,8 +51,10 @@ def run_twistd_plugin(filename):
return

# This isn't as evil as you might think
__builtins__["instance"] = options.instance
__builtins__["program"] = program
__builtin__.instance = options.instance
__builtin__.program = program
#__builtins__["instance"] = options.instance
#__builtins__["program"] = program

# Then forward applicable options to either twistd or to the plugin itself.
twistd_options = ["--no_save"]
Expand Down

0 comments on commit f254e7c

Please sign in to comment.