473,387 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

embedding python..

I compiled the c program that is supposed to allow you to call a
procedure from the command line promt.. (it is from the embeding
example).. I am a little confused as to what all I am supposed to
distribute to make it work.. Do I just need the python .dll for the
version I compiled or is it working with the installed version of
python.. (I don't want to start deleting stuff to find out).. Any
help on this question would be apreaceated..

tagger what tagline

Oct 5 '07 #1
2 1108
En Fri, 05 Oct 2007 20:40:40 -0300, Er*********@msn.com
<Er*********@msn.comescribi�:
I compiled the c program that is supposed to allow you to call a
procedure from the command line promt.. (it is from the embeding
example).. I am a little confused as to what all I am supposed to
distribute to make it work.. Do I just need the python .dll for the
version I compiled or is it working with the installed version of
python.. (I don't want to start deleting stuff to find out).. Any
help on this question would be apreaceated..
If you only provide pythonXX.dll (and probably msvcr71.dll), any Python
code that tries to import any module apart from builtin modules will fail.
If you provide the Python standard library in full, almost any program
could be run.
It's up to you to decide how much you require/allow/want to provide.

--
Gabriel Genellina

Oct 7 '07 #2
That sounds to easy I will give it a shot..

On Oct 6, 11:08 pm, "Gabriel Genellina" <gagsl-...@yahoo.com.ar>
wrote:
En Fri, 05 Oct 2007 20:40:40 -0300, Eric_Dex...@msn.com
<Eric_Dex...@msn.comescribi?:
I compiled the c program that is supposed to allow you to call a
procedure from the command line promt.. (it is from the embeding
example).. I am a little confused as to what all I am supposed to
distribute to make it work.. Do I just need the python .dll for the
version I compiled or is it working with the installed version of
python.. (I don't want to start deleting stuff to find out).. Any
help on this question would be apreaceated..

If you only provide pythonXX.dll (and probably msvcr71.dll), any Python
code that tries to import any module apart from builtin modules will fail.
If you provide the Python standard library in full, almost any program
could be run.
It's up to you to decide how much you require/allow/want to provide.

--
Gabriel Genellina

Oct 9 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: jordi | last post by:
Hi, I'm starting to use Python embedded in a C program. I'm using Python to execute several scripts using as a variables information retrieved for several multithread "agents" written in C. ...
0
by: Atul Kshirsagar | last post by:
I am embedding python in my C++ application. I am using Python *2.3.2* with a C++ extention DLL in multi-threaded environment. I am using SWIG-1.3.19 to generate C++ to Python interface. Now to...
23
by: Robey Holderith | last post by:
Anyone know a good way to embed python within python? Now before you tell me that's silly, let me explain what I'd like to do. I'd like to allow user-defined scriptable objects. I'd like to...
4
by: Alicia Haumann | last post by:
I accidentally sent this to webmaster@python.org, so this could be a duplicate if "webmaster" forwards it to this list. :{ Hi, there. Thanks for any help that can be offered. I've been...
1
by: Martin | last post by:
Greetings, I am new to python and wish to embed python in an 3D graphics application to provide application automation. The high level goal is to be able to drive my app from a script for batch...
2
by: Roose | last post by:
With some googling I have found these resources: http://docs.python.org/ext/win-dlls.html http://www.python.org/doc/faq/windows.html I have a large Win32/MFC/C/C++ application that has an...
1
by: amit | last post by:
Hello, I am currently studying how to embedd python. I am developing a graphical C++ application. My goal is to embedd python script that will control some kind of animation. I have some...
1
by: Tommy Nordgren | last post by:
I want to write an application that embeds and extends (at least) the Python and Perl interpreters. Now i want to find as much as possible about the Python tools used for extending and embedding...
6
by: Qun Cao | last post by:
Hi Everyone, I am a beginner on cross language development. My problem at hand is to build a python interface for a C++ application built on top of a 3D game engine. The purpose of this python...
0
by: Tim Spens | last post by:
--- On Fri, 6/27/08, Tim Spens <t_spens@yahoo.comwrote: I think I know where the problem is but I'm unsure how to fix it. When I call Register_Handler(...) from python via...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.