Answer the question
In order to leave comments, you need to log in
How to designate environment variables for starting Process in Arduino Yun?
I'm trying to run a python script from an Arduino Yun sketch. It looks simple and clear:
process sensor_log;
sensor_log.begin("python");
sensor_log.addParameter("/mnt/sda1/test.py");
sensor_log run();
while (sensor_log.available() > 0) {
char c = sensor_log.read();
Console.print(c);
}
Answer the question
In order to leave comments, you need to log in
You can try adding to the script:os.environ["LD_LIBRARY_PATH"] = "/usr/lib"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question