Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

run a python script from another python script on a raspberry pi

import subprocess
import sys

results = subprocess.run(["sys.executable", "MyPythonScriptName.py"])
 
PREVIOUS NEXT
Tagged: #run #python #script #python #script #raspberry #pi
ADD COMMENT
Topic
Name
6+4 =