Ask Your Question
1

Create a python project in a fast way

asked 2022-07-01 01:40:35 -0600

bai's avatar

I create small python projects recently. They have only two or three files. I find the normal to create a project in wingpro is a little complex. First choose the python command, second add the directory, open a file windows, finally I must save the project file, I have to input the project name two times.

Is there a way to create a lightweight project? I think script or macro can help me, but no idea. The projects I want to create always use the same python env. I hope I only input the project name once and get the project work.

Maybe a command line agent is helpful too. I use vscode and sublime text, code <directory> or subl <diretory> can create a project very fast. But I can't find how to use or create a "wing" command to do such thing.

edit retag flag offensive close merge delete

Comments

By lightweight project, do you mean opening a code directory and working with it like you can do with VSCode? Wing currently does not support this, though we may add it in a future release.

You may be running into a bug if you need to enter the filename for the project twice. Could you make sure you're using the latest Wing release, try creating a project and then submit a bug report from Wing's Help menu if you need to enter the filename twice?

Wingware Support's avatar Wingware Support  ( 2022-07-01 08:59:58 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-07-08 07:52:49 -0600

I would use Project > New Project, select the directory to use under Existing Directory, press Next, then Use Existing Python and select the one you want from the history drop down under either Command Line or Activated Env. Selecting the Python is skipped if the directory chosen contains a venv or pipenv, so in that case all you do is select the directory.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2022-07-01 01:40:35 -0600

Seen: 87 times

Last updated: Jul 11