mission planner python import os not found

Hello,

I am new to programing python in mission planner. I am trying to run a basic script where I need to save GPS location to a file. So This is example  how I want to write to file  in python script.  But when I load and run the script in Mission Planner on Windows machine.

I get error that "Module os not found"

import os
import os.path

import subprocess

fhome = open('C:\\data\\mycoordinate.txt', 'w')

How do I add the module in Mission Planner ?

Thanks,

H

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

Join diydrones

Email me when people reply –