Making changes to a python cgi to be put on a network

Discussion in 'Python' started by lamar_air, Aug 13, 2003.

  1. lamar_air

    lamar_air Guest

    I have a python cgi that i wrote. The way it works is a user fills
    out necessary information on a web form, click submit and the python
    script is executed. The script retrieves variables from the form and
    writes them to a txt file. The script then calls a executable which
    uses this txt file as a set of input parameters.

    I'm using this to call the executable
    os.system("webtablx4002")
    and then i just added webtablx4002 at c:\folder1\folder2 to the
    environment variables paths.

    I need this executable to be able to run from whatever directory the
    form is located in. So if whoever puts this program on the server it
    will all be in one directory and it would be nice not to have to
    change the code to be specific to that directory.
    Is there code to get a directoy path for the script or for the form,
    where it is located when it is run?
    lamar_air, Aug 13, 2003
    #1
    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.
Similar Threads
  1. William F. Robertson, Jr.

    Re: user control making changes to host page

    William F. Robertson, Jr., Jul 15, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    351
    William F. Robertson, Jr.
    Jul 15, 2003
  2. Luis Esteban Valencia
    Replies:
    1
    Views:
    1,364
    Carl Prothman [MVP]
    Jan 12, 2005
  3. Replies:
    0
    Views:
    272
  4. Gabriel Rossetti
    Replies:
    3
    Views:
    532
    Jerry Hill
    Apr 25, 2008
  5. Jay Williams
    Replies:
    2
    Views:
    484
    Gregory A. Beamer
    Jul 20, 2009
Loading...

Share This Page