Obtaining hte currently running script under windows

Discussion in 'Python' started by Sean Farrow, Jun 8, 2007.

  1. Sean Farrow

    Sean Farrow Guest

    Hi:
    Is there any way to obtain the full path to the currently running script
    under win32?
    I am using the pythonw.exe file is that helps.
    Sean.
     
    Sean Farrow, Jun 8, 2007
    #1
    1. Advertising

  2. Sean Farrow

    Guest

    On Jun 8, 8:45 am, Sean Farrow <> wrote:
    > Hi:
    > Is there any way to obtain the full path to the currently running script
    > under win32?
    > I am using the pythonw.exe file is that helps.
    > Sean.


    Check out Google! I found the following link by typing "python os cwd"

    http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/474083

    Mike
     
    , Jun 8, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page