Skip to content
This repository has been archived by the owner on Dec 21, 2019. It is now read-only.

How can we send argument to python project #7

Open
codaman opened this issue Nov 20, 2015 · 0 comments
Open

How can we send argument to python project #7

codaman opened this issue Nov 20, 2015 · 0 comments

Comments

@codaman
Copy link

codaman commented Nov 20, 2015

i've create second char array

i'm using youtube-dl project

NSString* main_script2 = @" -g https://www.youtube.com/watch?v=B3eAMGXFw1o";
const char *c = [main_script2 cStringUsingEncoding:NSUTF8StringEncoding];

python_argv[1] = _Py_char2wchar(c, NULL);

output:

Unable to open main.py, abort.
Leaving

how can we send an argument to main.py

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant