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
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
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
[ 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
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
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
How does one get the path to the file currently executing (not the
cwd). Thank you
--
http://mail.python.org/mailman/listinfo/python-list