I'm facing a weird issue here. My program fetches user id during execution via input command. When I test the code through eclipse development suite, it works perfectly. But when I invoke the python code through a windows bat file, it errors out. Output from console with error message is listed below.
*Enter User id :- test@gmail.com
Traceback (most recent call last):
File "C:\Users\Workspace\Py\MISC\test.py", line 118, in <module>
main(inifile)
File "C:\Users\Workspace\Py\MISC\test.py", line 54, in main
user_id = str(input("Enter User id for BI portal :- "))
File "<string>", line 1
test@gmail.com
^
SyntaxError: invalid syntax
C:\Users\Workspace\Py\MISC>pause
Press any key to continue . . .*
I have also noticed that if I provide input as "test@gmail.com" it works fine in windows console..
Contents of my bat file pasted below.
REN @echo off
python "C:\Users\Workspace\Py\MISC\test.py" config.ini%
pause