help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[h-e-w] NTEmacs + cygwin + bash + Python


From: Tennis Smith
Subject: [h-e-w] NTEmacs + cygwin + bash + Python
Date: Wed, 8 Aug 2007 13:32:32 -0700

Hi,

 

In python, there is an environment var called "PYTHONINSPECT" which will cause a script to drop into interactive mode at completion.  What should happen is the user will get the python interactive prompt ">>>" rather than returning to the shell in which the script was called.

 

This works great in bash on cygwin, but does not work from inside a bash/cygwin shell started by NTEmacs.  When started in a NTEmacs shell , the example script below will run to completion and the bash prompt will reappear.  In other words, python interactive mode is simply skipped or ignored.

 

Emacs Info:

This is GNU Emacs 22.0.990.1 (i386-mingw-nt5.1.2600) of 2007-05-23 on LENNART-69DE564 (patched)

 

This code snippet will recreate the problem:

#!/usr/bin/env python

import os

os.environ['PYTHONINSPECT'] = "YES"

print "HI HI HI"

 

 

Anyone have any ideas?

 

Thanks,

-T


reply via email to

[Prev in Thread] Current Thread [Next in Thread]