mission planner python import os not found

Hello,

I am new to Mission Panner python scripting and my goal is to write gps coordinate to a file using python scripting.

import os
import os.path
import subprocess


home = open(‘C:\\data\\mycoordinate.txt', 'w')
print os.getcwd()


When I run it in Mission Planner ( on Windows OS) , I get error “module os not found”.

How do I make Mission planner load this module.

Same problem for “import subpross”—> not found module subprocess


How do I make Mission Planner  recognize these two modules.

Thanks,
H

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –