What i want to do is to start a terminal session with the python command line interpreter and and further run a python file using the interpreter the python file could located anywhere.
What i mean to say is I have a python file
#demo.py a=10 print("something")
so that when terminal opens i see the message
something followed by the console prompt.
gnome-terminal --python -i ~/home/one/two/demo.py
this gives me following result
python: can't open file '~/Desktop/pydemo/demo.py': [Errno 2] No such file or directory
However when i run the same command from terminal window(not opened in the same directory as the
demo.py file ) it works properly.
Can someone please explain what is happening here and if possible suggest a way t0 achieve whatever i mentioned above.