Generate New Python Project
- A complete install of
Python 3.x
. - Under
Projects
,main.py
.
- Under your
USERPROFILE
, extractgenerate-new-python-project-main.zip
.
Example:
C:\Users\nso89\generate-new-python-project-main
- Open
cmd.exe
and change the directory to thegenerate-new-python-project-main
folder.
Example:
C:\Users\nso89>cd generate-new-python-project-main
- Start the
main.py
script.
Example:
C:\Users\nso89\generate-new-python-project-main>python main.py
- It asks you for the
Project Name
.
Example:
Project Name: Hello World
Generating: hello-world
Copying C:\Users\nso89\Projects\main.py to C:\Users\nso89\Projects\hello-world
The script create 1
folder, with the Project Name
as the parent. It copies the main.py
to the new folder.
If you need to change the MAIN_PY
:
- Open the
main.py
script in any text editor. - Locate the
MAIN_PY
variable.
Example:
MAIN_PY = Path.home().joinpath("Projects\\main.py")
- When you finish changing the variables, save and close the editor.