Shaqni
Shaqni

Reputation: 67

How to compile my Python software that's in a folder with sub-folders

So my software is all contained in the BankingSystem folder. Within that folder, there are many other folders such as Account, Algorithm, etc. How can I compile all python files in the BankingSystem folder INCLUDING the sub-folders?


Here is the directory of BankingSystem

BankingSystem
│   main.py
│
├───Account
│       account.py
│
├───Algorithms
│       accountAccess.py
│       accountManage.py
│       accountMoney.py
│
├───Database
│       Accounts.json
│
├───Login
│       login.py
│
└───Register
        register.py

Upvotes: 0

Views: 111

Answers (1)

Devaka
Devaka

Reputation: 64

You can create a .sh file if using Linux, or .bash file if using windows. Write the normal steps you use to compile each file and save it as one of the formats above. And run that particular file.

Upvotes: 1

Related Questions