Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1081701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:12:07+00:00 2026-05-16T22:12:07+00:00

I use TextMate to debug python script, as I like the feature of using

  • 0

I use TextMate to debug python script, as I like the feature of using ‘Command-R’ for running python from TextMate, and I learned that emacs provide similar feature.

I need to know if the python is run from command line or from TextMate/emacs. How can I do that?

ADDED

I use TextMate for python coding/debugging, and it’s pretty useful. But, sometimes I need to run the test using command line. I normally turn on debugging/logging mode with TextMate, and off with command line mode. This is the reason I asked the question. Also, I plan to use emacs for python debugging, so I wanted to ask the case for emacs.

I got an answer in the case with emacs, and I happen to solve this issue with TextMate.

  1. Set variables in Preferences -> Advanced -> Shell Variables, and I found that TM_ORGANIZATION_NAME is already there to be used. So, I’ll just use this variable.
  2. Use this variable, if os.environ[‘TM_ORGANIZATION_NAME’]: return True

I guess the shell variable from TextMate disappear when I’m done using it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T22:12:08+00:00Added an answer on May 16, 2026 at 10:12 pm

    For Emacs: If python is run as an inferior process, then the environment variable INSIDE_EMACS will be set.

    From docs:

    Emacs sets the environment variable
    INSIDE_EMACS in the subshell to a
    comma-separated list including the
    Emacs version. Programs can check this
    variable to determine whether they are
    running inside an Emacs subshell.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

TextMate seems to use the built-in Python version I assume (sys.path doesn't work). How
Trying to use Textmate with the Git bundle. Running into errors when trying any
I am trying to run growlnotify from inside a ruby script. The command I
I'm quite new to IntelliJ and I'd like to use it like TextMate to
When trying to use some of the commands from the Git bundle for TextMate
I have TextMate running on Mac, and it has txmt protocol, that I can
In TextMate there is a feature called Go to file that is used for
I have made the move from TextMate to VIM. I can not use macvim,
I just installed lxml for parsing xml file in python. I am using TextMate
Until recently, I posted Python code (whitespace matters) to blogspot.com using something like this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.