Terminal Launches python script in Notepad upon execution

Answered

When I launch a python script from the PyCharm Embedded Terminal window it launches the python script in a notepad editor versus launching the script. 

All of my .py files are associated to python and I am able to launch the script without issue from the Run menu option.

Any idea why I cannot launch the script directly from the Terminal?

 

 

6 comments
Comment actions Permalink

Hi Wowens,

Please attach a screenshot of Settings/Preferences | Tools | Terminal and a screenshot showing the problem.

0
Comment actions Permalink

Here are the items you requested.

Like I said, when I go to launch the script within the embedded terminal it launches the file within notepad instead of running the script

Thanks

Bill

 

0
Comment actions Permalink

Does it also happen if you run the script in the command line (outside of PyCharm) using the same interpreter?

0
Comment actions Permalink

Yes it does.. Launches the script file in notepad.

If I enter "python" prior to the script path and arguments from the same interpreter it will launch.

 

0
Comment actions Permalink

Yep file association was the culprit. I re-associated the file to use python and it worked

The python icon did show as the default program for launching the file as I mentioned initially...

Thanks for the help, sorry for putting you through that...

 

0

Please sign in to leave a comment.