Hello all,
I am looking for a proven workflow to distribute a python script to others that run pythonista on IOS. Ideally I would like to only distribute .PYC compiled code without the underlying .PY source, if that is possible. I have successfully compiled my script using py_compile and it creates bytecode files in the cache. Now the question is how do you run it without the source?
import myscript
will run it, if the myscript.py is present, not so much if it's missing and only the PYC is present. I did try with both settings for "sys.dont_write_bytecode" just in case that would also affect the loading behavior. Do I need to move the PYC file from the cache to the main directory?
Also, what's the best way to package it, so that other can unpackage it on their phones with copy/pasting source code etc.?
Thanks much for any help you can provide.