
from __future__ import absolute_import
from __future__ import division

import os
import subprocess
import sys

import guild.util

def main(_args):
    env = guild.util.safe_osenv()
    env["PYTHONPATH"] = os.path.pathsep.join(sys.path)
    p = subprocess.Popen([sys.executable, "-i"], env=env)
    p.communicate()


from __future__ import absolute_import
from __future__ import division

import code

def main(_args):
    code.interact(local=locals())

Drop into repl without starting new Python process for shell cmd
Drop into repl without starting new Python process for shell cmd

  
  from __future__ import absolute_import
  from __future__ import division
  
- import os
+ import code
- import subprocess
- import sys
- 
- import guild.util
  
  def main(_args):
+     code.interact(local=locals())
-     env = guild.util.safe_osenv()
-     env["PYTHONPATH"] = os.path.pathsep.join(sys.path)
-     p = subprocess.Popen([sys.executable, "-i"], env=env)
-     p.communicate()
  
Drop into repl without starting new Python process for shell cmd
## Code Before:

from __future__ import absolute_import
from __future__ import division

import os
import subprocess
import sys

import guild.util

def main(_args):
    env = guild.util.safe_osenv()
    env["PYTHONPATH"] = os.path.pathsep.join(sys.path)
    p = subprocess.Popen([sys.executable, "-i"], env=env)
    p.communicate()

## Instruction:
Drop into repl without starting new Python process for shell cmd
## Code After:

from __future__ import absolute_import
from __future__ import division

import code

def main(_args):
    code.interact(local=locals())
