First time here? Check out the FAQ!
1

is there a way to run Wing IDE in the current VE, on a single script file, without creating and saving project files?

  • retag add tags

I have a number of simple, single-file scripts, to be run in the currently-open Virtual Environment. IDLE handles this case simply and naturally: just hand it the script file, and off it goes. It doesn't need to clutter the folder with project files.

Wing, however, will not run when that environment is active. It has to be invoked from outside that environment. That means creating a project file, to specify the environment (actually, the full path and name to a batch file that activates the environment), and to tell Wing that only that specific .py file, among the many in that folder, is relevant.

Is there some command-line parameter I can use to make command-line usage as simple as that for IDLE? Wing shouldn't have to use the current environment for itself, just for the script it's debugging. And it shouldn't need to save project files, cluttering up the current folder, to debug it, either.

anonymous user
Anonymous
asked 2026-07-23 22:57:41 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

If you activate the env from the command line and then start Wing from same command line, it inherits the environment unless it opens a project that overrides the default Python environment. An idea to prevent that if you had other projects open sometimes is to uncheck the Projects > Auto-reopen Last Project preference, so it always opens the default project, and leave that project configured so it doesn't specify a non-default Python. Then I think opening your file with 'wing' (or wing12 or whatever the executable is in your case; depends on OS and version of Wing) should open the file and have the right env if you run/debug it.

Wingware Support's avatar
4.3k
Wingware Support
answered 2026-07-24 01:04:42 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer