I have written a script in python 3.5. I have made an .exe file of it using pyinstaller. The script has some print statements which are displayed in the console during execution. When i ran my script from command prompt i can see all the messages in my cmd but when i run .exe file from cmd than i do not see any msgs in command prompt. Is there any way to see msgs in command prompt from .exe file.
For example lets suppose below is my script named abc.py:
def sum():
first = 5
print('First number is {}'.format(first))
second = 10
result = first + second
print('second number is {}'.format(second))
print('Sum is = {}'.format(result))
sum()
Now when i run this file from cmd like: python \pathto\abc.py, i can see all the messages in cmd. Now when i make .exe of this and now do something like \pathto\abc.exe from cmd then i do not see anything. Is there anyway to see ,msgs in a cmd from .exe file?
--consoleinstead of--windowed?