Re: [Tutor] python function to know the path of the program in execution *

2010-02-05 Thread Rohit Roger$
Answer : >>> import sys >>> rohit = sys.argv[0] >>> print rohit it returns the name of the path On Fri, Feb 5, 2010 at 4:13 PM, David Hutto wrote: > Junk Score: 2 out of 10 (below your Auto Allow > threshold) > | Approve sender

Re: [Tutor] python function to know the path of the program in execution *

2010-02-05 Thread Rohit Roger$
sys.path[0] returns none On Fri, Feb 5, 2010 at 5:36 PM, Spoorthi wrote: > sys.path[0] should be serving the purpose effectively I guess > > > On Fri, Feb 5, 2010 at 5:29 PM, Rohit Roger$ wrote: > >> Answer : >> >>> import sys >> >>> rohit

Re: [Tutor] python function to know the path of the program in execution *

2010-02-05 Thread Rohit Roger$
ad from standard > input), path[0] is the empty string, which directs Python to search > modules in the current directory first. Notice that the script directory is > inserted before the entries inserted as a result of PYTHONPATH.* > > > On Fri, Feb 5, 2010 at 5:38 PM, Rohit Roge

Re: [Tutor] Variable: From input and output

2010-02-05 Thread Rohit Roger$
Answer: Here is the code : >>> firstname = raw_input("\n Enter your first name : ") >>> lastname = raw_input("\n Enter your last name : ") >>> print (" Printing Your Complete name.") >>> print firstname + " " + lastname Regards, Rohit On Fri, Feb 5, 2010 at 6:04 PM, Kent Johnson wro

Re: [Tutor] python function to know the path of the program in execution * *

2010-02-05 Thread Rohit Roger$
tps://www.boxbe.com/anno?tc=1530328725_1435846689&disp=b> | Block > domain <https://www.boxbe.com/anno?tc=1530328725_1435846689&disp=b&dom> > > > > Date: Fri, 5 Feb 2010 17:43:37 +0530 >> From: Spoorthi >> To: "Rohit Roger$" >> Cc: