Pass a variable to another python script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve

    Pass a variable to another python script

    Hi,

    I've written a small cgi python script that collects feedback from a
    webform. I need to pass the values to another python script.. how do I
    do this? Is this even possible? Thanks

    Steve

  • Rene Pijlman

    #2
    Re: Pass a variable to another python script

    Steve:[color=blue]
    >I've written a small cgi python script that collects feedback from a
    >webform. I need to pass the values to another python script.. how do I
    >do this?[/color]

    There are many ways (command line, socket, file, database, ...), but the
    easiest solution is as parameter of a function in the other module.

    In module a:

    feedback = "good site"
    import b
    b.function(feed back)

    --
    René Pijlman

    Comment

    Working...