Re: The file executing

2007-07-09 Thread Benjamin
On Jul 9, 6:42 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 06 Jul 2007 17:15:22 -0300, Benjamin <[EMAIL PROTECTED]> > escribió: > > >> > > > How does one get the path to the file currently executing (not the > >> > > > cwd). Thank you > > So: > > if __name__ == "main": > > cu

Re: The file executing

2007-07-09 Thread Gabriel Genellina
En Fri, 06 Jul 2007 17:15:22 -0300, Benjamin <[EMAIL PROTECTED]> escribió: >> > > > How does one get the path to the file currently executing (not the >> > > > cwd). Thank you > So: > if __name__ == "main": > currentDir = os.path.dirname(sys.argv[0]) > else: > currentDir = os.path.dirnam

Re: The file executing

2007-07-06 Thread Benjamin
On Jul 3, 8:56 am, Sebastian Wiesner <[EMAIL PROTECTED]> wrote: > [ Benjamin <[EMAIL PROTECTED]> ] > > > On Jul 2, 9:47 pm, Justin Ezequiel <[EMAIL PROTECTED]> > > > wrote: > > > On Jul 3, 9:40 am, Benjamin <[EMAIL PROTECTED]> wrote: > > > > How does one get the path to the file currently executing

Re: The file executing

2007-07-03 Thread Sebastian Wiesner
[ Benjamin <[EMAIL PROTECTED]> ] > On Jul 2, 9:47 pm, Justin Ezequiel <[EMAIL PROTECTED]> > > wrote: > > On Jul 3, 9:40 am, Benjamin <[EMAIL PROTECTED]> wrote: > > > How does one get the path to the file currently executing (not the > > > cwd). Thank you > > > > os.path.dirname(sys.argv[0]) > > The

Re: The file executing

2007-07-03 Thread Benjamin
On Jul 2, 9:47 pm, Justin Ezequiel <[EMAIL PROTECTED]> wrote: > On Jul 3, 9:40 am, Benjamin <[EMAIL PROTECTED]> wrote: > > > How does one get the path to the file currently executing (not the > > cwd). Thank you > > os.path.dirname(sys.argv[0]) The returns the file that was called first, but not th

Re: The file executing

2007-07-02 Thread Justin Ezequiel
On Jul 3, 9:40 am, Benjamin <[EMAIL PROTECTED]> wrote: > How does one get the path to the file currently executing (not the > cwd). Thank you os.path.dirname(sys.argv[0]) -- http://mail.python.org/mailman/listinfo/python-list

The file executing

2007-07-02 Thread Benjamin
How does one get the path to the file currently executing (not the cwd). Thank you -- http://mail.python.org/mailman/listinfo/python-list