Calling python from a c++ program for distribution
<p>I would like to call python script files from my c++ program. </p>

<p>I am not sure that the people I will distribute to will have python installed.</p>

<p>Basically I'm looking for a .lib file that I can use that has an Apache like distribution license.</p>

<blockquote>
  <p>I would like to call python script files from my c++ program.</p>
</blockquote>

<p>This means that you want to embed Python in your C++ application. As mentioned in <a href="http://docs.python.org/extending/embedding.html">Embedding Python in Another Application</a>:</p>

<blockquote>
  <p>Embedding Python is similar to
  extending it, but not quite. The
  difference is that when you extend
  Python, the main program of the
  application is still the Python
  interpreter, while if you embed
  Python, the main program may have
  nothing to do with Python â instead,
  some parts of the application
  occasionally call the Python
  interpreter to run some Python code.</p>
</blockquote>

<p>I suggest that you first go through <a href="http://docs.python.org/extending/embedding.html">Embedding Python in Another Application</a>. Then refer the following examples</p>

<ol>
<li><p><a href="http://www.codeproject.com/KB/cpp/embedpython_1.aspx">Embedding Python in C/C++: Part I</a></p></li>
<li><p><a href="http://www.codeproject.com/KB/cpp/embedpython_2.aspx">Embedding Python in C/C++: Part II</a></p></li>
<li><p><a href="http://www.linuxjournal.com/article/3641">Embedding Python in Multi-Threaded C/C++ Applications</a></p></li>
</ol>

<p>If you like <a href="http://www.boost.org/doc/libs/release/libs/python/doc/tutorial/doc/html/python/embedding.html">Boost.Python</a>, you may visit the following links:</p>

<ol>
<li><a href="http://members.gamedev.net/sicrane/articles/EmbeddingPythonPart1.html">Embedding Python with Boost.Python Part 1</a></li>
</ol>
