3
3
# This program was created to compile Python-Calcutator.
4
4
5
5
import os
6
+ import time
6
7
7
- operating_sys = str (input ('Operating System (Windows/Linux/MacOS): ' ))
8
+ operating_sys = str (input ('Operating System (Windows/Linux/MacOS): ' ))
8
9
9
10
if operating_sys == "Windows" :
10
- usr = str (os .system ("%users%" ))
11
- ProgramPath = str (input ('Program Path (C:\...) (EN/TR): ' ))
12
- FileName = str (input ('File Name: ' ))
13
- debugPath = str (ProgramPath )
14
- debug = os .system ("cd {0}" . format (debugPath ))
15
- debugfile = os .system ("pyinstaller --onefile {0}" . format (FileName ))
11
+ users_name = str (input ('Enter The Users Name: ' ))
12
+ ProgramPath_Ws = str (input ('Version (EN/TR): ' ))
13
+ debug = os .system ("cd {0}" . format (ProgramPath_Ws ))
14
+ debugfile = os .system ("pyinstaller --onefile calc.py" )
16
15
elif operating_sys == "Linux" or operating_sys == "MacOS" :
17
- ProgramPath = str (input ('Program Path (/...) (EN/TR): ' ))
18
- FileName = str (input ('File Name: ' ))
19
- debugPath = str (ProgramPath )
20
- debug = os .system ("cd {0}" . format (debugPath ))
21
- debugfile = os .system ("pyinstaller --onefile {0}" . format (FileName ))
16
+ users_nm = str (input ('Enter The Users Name: ' ))
17
+ ver_name = str (input ('Version (EN/TR): ' ))
18
+ ProgramPath = str ("/home/{0}/Desktop/Python-Calcutator-main/{1}/" . format (users_nm ,ver_name ))
19
+ debugPath = str (os .system ("cd /home/{0}/Desktop/Python-Calcutator-main/{1}" . format (users_nm ,ver_name )))
20
+ time .sleep (2 )
21
+ print ("[DEBUGANDRUN]: Program Derlenmeye Hazırlanıyor..." )
22
+ time .sleep (2 )
23
+ print ("[DEBUGANDRUN]: Program Bilgileri Kontrol Ediliyor..." )
24
+ users_list = str (list (users_nm ))
25
+ ver_list = str (list (ver_name ))
26
+ ProgramPath_list = str (list (ProgramPath ))
27
+ debugPath_list = str (list (debugPath ))
28
+ time .sleep (2 )
29
+ print ("[DEBUGANDRUN]: Program Bilgileri Listeleniyor...\n {0}\n {1}\n {2}\n {3}" . format (users_list ,ver_list ,ProgramPath_list ,debugPath_list ))
30
+ time .sleep (2 )
31
+ print ("[DEBUGANDRUN] Program Derleyicisi Hazırlanıyor..." )
32
+ global debugger ,debugger_opt ,debug_file
33
+ debugger = str ('pyinstaller' )
34
+ debugger_opt = str ('--onefile' )
35
+ debug_file = str ("calc.py" )
36
+ time .sleep (2 )
37
+ print ("[DEBUGANDRUN]: Program Derleniyor..." )
38
+ dbg = os .system ("{0} {1} {2}" . format (debugger ,debugger_opt ,debug_file ))
39
+ time .sleep (2 )
40
+ print ("[DEBUGANDRUN]: Derleme İşlemi Bitmiştir..." )
22
41
else :
23
42
print ("Invalid Operating System...!" )
0 commit comments