Python Forum
Running another python script from a python script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running another python script from a python script
#2
in the second program add:
import program_that_asks_question as p1
you can then execute functions from the program_that_asks_question, like:
zz = p1.function_name()
Rather that using subprocess, you need to control 1st program from second
(program names would help with explanation)
Reply


Messages In This Thread
RE: Running another python script from a python script - by Larz60+ - Dec-29-2018, 11:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Autonomous Python Script Leyo 6 1,943 Apr-01-2022, 09:37 AM
Last Post: Axel_Erfurt
  Re-write BASH script to Python script popi75 5 2,446 Apr-30-2021, 03:52 PM
Last Post: metulburr
  My script returns no values Shay3534 7 3,341 Dec-04-2020, 09:47 PM
Last Post: Shay3534
  Create process to control python script kobibi11 5 2,619 Jun-07-2020, 08:19 AM
Last Post: kobibi11
  Opening files in same directory as script Emekadavid 3 2,560 May-28-2020, 06:50 PM
Last Post: Emekadavid
  Error in Python script garvind25 10 5,950 May-25-2020, 08:50 PM
Last Post: GOTO10
  running python in cmd on win10 rny1python 6 3,132 May-18-2020, 11:36 PM
Last Post: deanhystad
  An interesting Role-Play-Game battle script NitinL 4 3,413 Apr-02-2020, 03:51 AM
Last Post: NitinL
  Please help with this simple tic tac toe script ErtYwek 2 1,910 Mar-06-2020, 06:42 PM
Last Post: ndc85430
  Running Python Packages mojobadshah 10 3,747 Jan-30-2020, 10:28 PM
Last Post: mojobadshah

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020