dartsman![]() Member Posts: 484 From: Queensland, Australia Registered: 03-16-2006 |
Hey ppl... I don't know python, haven't used it, most prolly wont. But at work I was asked a question about how to load up and read Python Scripts in C++. Is there a library to download to which would help the student? It's so that he could load up the python scripts into his program and use the data in them to run the game. I think he was saying that he is using pygame or something to test the python scripts. I'm guess what he wants to do is a pygame type application which he can use. Anywho, thanks in advance... ------------------ |
|
buddboy![]() Member Posts: 2220 From: New Albany, Indiana, U.S. Registered: 10-08-2004 |
i know that it's possible to do that... i don't know exactly how tho. i've googled it a bunch of times... sorry i can't be of much help. ------------------ RADIOACTIVE IE AHEAD! int name() |
|
CoolJ![]() Member Posts: 354 From: ny Registered: 07-11-2004 |
Though I don't use it much, I absolutely love python! I think the default answer with anything you want to do with python is 'YES' For using python scripts in C++, you might want to check here to start: http://docs.python.org/ext/embedding.html From their docs:
quote: A very simple example from the docs:
quote: I think you will find python to be simple yet very powerful. Its a fun language! [This message has been edited by coolj (edited June 22, 2006).] |
|
dartsman![]() Member Posts: 484 From: Queensland, Australia Registered: 03-16-2006 |
thanks coolj, I'll let the guy know next time I see him, hopefully sooner rather then later. I think it's for an assignment of his, so he doesn't have too much time left. ------------------ |
|
buddboy![]() Member Posts: 2220 From: New Albany, Indiana, U.S. Registered: 10-08-2004 |
where do you get Python.h? does it come with the interpreter?
------------------ RADIOACTIVE IE AHEAD! int name() [This message has been edited by buddboy (edited June 24, 2006).] |