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

2010-02-05 Thread David Hutto
scripts\lowerdir\lowerdir.py >>> As long as you have sys imported at somepoint, then all you have to do is print sys.argv[0], and that should be the exact name and location of the current running script, David --- On Fri, 2/5/10, Daniel Sarmiento wrote: From: Daniel Sarmiento Su

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

2010-02-05 Thread David Hutto
ir\lowerdir.py >>> As long as you have sys imported at somepoint, then all you have to do is print sys.argv[0], and that should be the exact name and location of the current running script, David --- On Fri, 2/5/10, Daniel Sarmiento wrote: From: Daniel Sarmiento Subject: Re: [Tu

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

2010-02-05 Thread Rohit Roger$
t;>>>> >>>>>>> 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< >>>>&g

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

2010-02-05 Thread Daniel Sarmiento
Date: Fri, 5 Feb 2010 17:43:37 +0530 From: Spoorthi To: "Rohit Roger$" Cc: tutor Subject: Re: [Tutor] python function to know the path of the program in execution * Message-ID: <6c9f52051002050413o57bd76bax7ac5986b17304...@mail.gmail.com> Content-

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

2010-02-05 Thread Rohit Roger$
t;> Block >>>>> sender <https://www.boxbe.com/anno?tc=1529381613_418589136&disp=b> | Block >>>>> domain <https://www.boxbe.com/anno?tc=1529381613_418589136&disp=b&dom> >>>>> >>>>> >>>>> >>>&

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

2010-02-05 Thread Spoorthi
nno?tc=1529381613_418589136> | >>>> Block sender<https://www.boxbe.com/anno?tc=1529381613_418589136&disp=b>| >>>> Block >>>> domain <https://www.boxbe.com/anno?tc=1529381613_418589136&disp=b&dom> >>>> >>>> >>&g

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

2010-02-05 Thread Rohit Roger$
ning>) >>> | Approve sender <https://www.boxbe.com/anno?tc=1529381613_418589136> | >>> Block >>> sender <https://www.boxbe.com/anno?tc=1529381613_418589136&disp=b> | Block >>> domain <https://www.boxbe.com/anno?tc=1529381613_418589136&disp=b&

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

2010-02-05 Thread Spoorthi
.com/anno?tc=1529381613_418589136&disp=b> | Block >> domain <https://www.boxbe.com/anno?tc=1529381613_418589136&disp=b&dom> >> >> >> >> --- On *Fri, 2/5/10, nikunj badjatya * wrote: >> >> >> From: nikunj badjatya >> Subject: [Tutor]

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

2010-02-05 Thread Rohit Roger$
i, 2/5/10, nikunj badjatya * wrote: > > > From: nikunj badjatya > Subject: [Tutor] python function to know the path of the program in > execution > To: tutor@python.org > Date: Friday, February 5, 2010, 5:08 AM > > Hi , > Is there any python function to know the path of t

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

2010-02-05 Thread David Hutto
--- On Fri, 2/5/10, nikunj badjatya wrote: From: nikunj badjatya Subject: [Tutor] python function to know the path of the program in execution To: tutor@python.org Date: Friday, February 5, 2010, 5:08 AM Hi , Is there any python function to know the path of the python program under

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

2010-02-05 Thread nikunj badjatya
Hi , Is there any python function to know the path of the python program under execution.? If someone executes a program , he should come to know the path of the program..!! ex. suppose a user ABC is running prog.py which is in ~ directory, the user currently is in XYZ directory. [ a...@localhost X