I want to run a python script on ios.
I don’t want to write the whole Application in Python just a little part of it.
I have tried to understand PyObjC but it is not that easy.
Could you give me an example, please? I would like to save the result for the following method in a NSString variable.
def doSomething():
someInfos = "test"
return someInfos
Here is an example of calling a function defined in
myModule. The equivient python would be:In Objective-c:
For much more documentation check out: Extending and Embedding the Python Interpreter