Embedding vs Configuring Python build

H

hvendelbo.dev

I am using Python in an application that cannot depend on an existing
Python installation or require Python to
be installed. The application itself should not have an install
procedure, but rather should be runnable from any
location in the file system.

Ideally I would prefer not to embed at all, but would rather prefer to
configure. I found a couple of discussions on the
default sys.path in the archive and am currently reading through the
Py_GetPath. The path logic seems pretty specific to the platform,
whereas I would want it to be relative regardless of platform. I
figure that if I can just get to
my own site.py/sitecustomize.py then I'm in business.

This is what I wan't to achieve:

* The python executable location should be used to determine dynamic
libraries
* The python exe location should be used to determine standard library
scripts
* site.py should be executed rather than the shell if no parameters
are specified

Is it possible to change the build configuration of Python to support
this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top