Skip to content

nso89/generate-new-python-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

generate-new-python-project

Generate New Python Project

Prerequisites

  • A complete install of Python 3.x.
  • Under Projects, main.py.

Setup

  1. Under your USERPROFILE, extract generate-new-python-project-main.zip.

Example:

C:\Users\nso89\generate-new-python-project-main

Running the Script

  1. Open cmd.exe and change the directory to the generate-new-python-project-main folder.

Example:

C:\Users\nso89>cd generate-new-python-project-main
  1. Start the main.py script.

Example:

C:\Users\nso89\generate-new-python-project-main>python main.py
  1. 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.

Configuration

If you need to change the MAIN_PY:

  1. Open the main.py script in any text editor.
  2. Locate the MAIN_PY variable.

Example:

MAIN_PY = Path.home().joinpath("Projects\\main.py")
  1. When you finish changing the variables, save and close the editor.