-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
29 lines (17 loc) · 1.01 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#IMPORTING ALL THE FUNCTIONS
import mysql.connector
from railway_function import dataBase, Tables, railresmenu, traindetail, reservation, cancel, displayticket, printtraindetails,main_program
'''--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------'''
#CONNECTING MYSQL WITH PYTHON
mydb=mysql.connector.connect(host="localhost",user="root",password="osmosis1080");
mycursor=mydb.cursor()
pnr=0 #MADE GLOBAL FOR USING IN FUNCTIONS
#CALLING FUNCTIONS
main_program()
#MODULES TO BE IMPORTED ON A NEW DESKTOP :
#1) datetime
#2) plyer
#3) string
#4) sys
#5) pywhatkit
#6)random