Classic file types are no longer available for use as of January 2021. You can transition your classic files or download a PDF. Learn More

Run Script - Python

1

Comments

1 comment

  • JP Thomas

    In case anyone runs into the same issue, I figured out how to pass the arguments through. You need to use this format and eliminate your input() functions in python if you have them and use this instead.

    sys.argv[0] will be your actual script and then 1,2,3,etc. are the arguments you want to pass in as variables.

    I also attached what I input as arguments in the chain to get it to run. Month 13 for us simply includes year end adjustments.

    if len(sys.argv) > 1:
    month = sys.argv[1]
    year = sys.argv[2]

    0

Please sign in to leave a comment.