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

  • SEARCH
  • Home
  • 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 7735405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:29:39+00:00 2026-06-01T07:29:39+00:00

I came across bpython and tried to installed it on my windows system with

  • 0

I came across bpython and tried to installed it on my windows system with the help of cygwin. Now, whenever I have to access bpython program I have to open cygwin and than write bpython inside the cygwin shell.

Now I am trying to automate the above process using a python script.So, that as soon as I write bpython.py in my windows command prompt it should directly open bpython shell for me.

My code:

import subprocess
subprocess.call('F:\cygwin\Cygwin.bat')

Using above code I am able to create cygwin process but than again I have to write bpython in cygwin terminal to get it working.

enter image description here

So, I was wondering can I directly pass bpython as an argument to the F:\cygwin\Cygwin.bat something like

F:\cygwin\Cygwin.bat bpython

which can directly open the bpython shell.

OR is it possible that

1) First I create cygwin process with the help of subprocess module.

2) Than I pass bpython as an argument.

Both the above task to be done by python program so that the end result is bpython shell.

Output of which bpython

enter image description here

  • 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-06-01T07:29:40+00:00Added an answer on June 1, 2026 at 7:29 am

    Create a file named bpython.bat (contents below) and put it in a directory in your Windows PATH:

    @C:\cygwin\bin\bash.exe --login -c /usr/bin/bpython
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I came across this recently, up until now I have been happily overriding the
Came across a problem which google searches could not help me with. I have
I came across this class while reading a C# book and have some questions.
I came across an article about Car remote entry system at http://auto.howstuffworks.com/remote-entry2.htm In the
I came across this syntax which i have not seen before struct A {
I came across these on the new job I just started. I don't have
I came across them, but I have yet to see why I should use
I came across this problem at work, and though I have a solution, I
I came across an interesting problem recently. In an ASP.NET Master Page, I have
I came across this website while looking for help on the internet regarding adj.

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.