0

Hi all I am brand new to python so if anyone could help that would be great. The trouble I have is that I am trying to call two other programs from within a parent program, and pass arguements to these children programs. Here is my code so far, but it seems incorrect so maybe you will spot a mistake. Many thanks for your time.

def init(p1):
    loc.p1 = str(p1)

def lab01(p1):
    call("2404")

def lab02(p1):
    call("test2")
3
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by Ene Uran
0

Hi all I have found the answer. For those of you greener than myself with python the answer is below:

def init(p1):
    loc.p1 = str(p1)

def lab01():
   call("2404",loc.p1)

def lab02():
    call("test2",loc.p1)

The arguments are passed to each program.

0

hmm.. what module is this 'call' function from?

because it's not a builtin / keyword function

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.