Skip to content

Commit 53ca940

Browse files
committed
Build executable instructions, requirements
1 parent 916db77 commit 53ca940

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
venv/
22
.vscode/
3+
build/
4+
dist/
5+
__pycache__/
6+
**.spec

Readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ To build and run the program, open terminal and change directory to the program
2121
2222
This program can be built and run on windows too. First install ``prolog``, ``pip``. Then run the commands in the commands in the ``cmd`` terminal to build and run the program. <br>
2323

24+
To create executable, run
25+
> ``$ pyinstaller main.py``<br>
26+
27+
Run the executable
28+
> ``./dist/main/main``<br>
29+
30+
<br>
31+
2432
### LICENSE [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
2533
***
2634
Copyright © 2022, [Kamrul Hasan](https://github.com/kmtusher97).

main.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def say_answers(prefix, suffix, question_i, answers_i):
4545
while flg:
4646
# Q/A
4747
print("\n\n")
48-
asked_question = input("what is in your mind: ")
48+
asked_question = str(input("what is in your mind: ")).lower()
4949

5050
if (
5151
"name of the university" in asked_question

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
altgraph==0.17
2+
pyinstaller==4.0
3+
pyinstaller-hooks-contrib==2020.10
14
pyswip==0.2.10

0 commit comments

Comments
 (0)