How to run python script in OpenElec

I have looked through everything but cannot find a direct answer. I have OpenElec installed on my raspberry pi B + and I want to start playing with some script.

What directory do you put the files in and where can I go to OpenElec to run the python script?

Hooray!!

+3


source to share


1 answer


1. Connect to your Raspberry Pi with SSH:
$ ssh root@192.168.1.1xx(IP)
password: openelec

2. Check
# python
Python 2.7.3 (default, Mar 31 2015, 22:10:50) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

3. Write
# nano myScript.py

      

Or edit your script with your favorite IDE on your PC directly via net protocole (ftp, samba, ..) as I do with my banana Pi.



Be aware that for some python external modules, you must include them before compiling OpenElec from source, or using cross-copy if they are binary, see .

+4


source







All Articles