Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Loading user contributed Python-code plugins in a packed application
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
eliben  
View profile  
 More options Jun 29, 5:57 am
From: eliben <eli...@gmail.com>
Date: Mon, 29 Jun 2009 02:57:20 -0700 (PDT)
Local: Mon, Jun 29 2009 5:57 am
Subject: Loading user contributed Python-code plugins in a packed application
Hello,

I'm distributing a fairly complex PyQt based application as a
single .exe made by PyInstaller on Windows.

For some advanced users, I want to allow adding their own modules in a
special "plugins" directory. These modules can enhance the way the
application works in completely user-defined ways. However, there's a
slight problem with this approach:

My application has to expose an API to these plugin modules. I'm not
sure how the users should write the 'import' statements to make it
work. After all, all there is for a user is a big .exe, and his
module. Where will the module import the API code? Relatively?
How can this be made to work? How should the user's imports be
structured, or is there something special I have to tell PyInstaller
when creating the .exe?

Thanks in advance
Eli


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Giovanni Bajo  
View profile  
 More options Jun 30, 8:12 am
From: Giovanni Bajo <ra...@develer.com>
Date: Tue, 30 Jun 2009 14:12:30 +0200
Local: Tues, Jun 30 2009 8:12 am
Subject: Re: [PyInstaller] Loading user contributed Python-code plugins in a packed application
On 6/29/2009 11:57 AM, eliben wrote:

You should do absolutely nothing, it should work out of the box.

PyInstaller first searches for imports within the big .exe, and then
look for them outside. If you bundle your API as a normal python package
within the big .exe, by simply importing it somewhere, it will
automatically be available for plugins.
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
eliben  
View profile  
 More options Jun 30, 10:54 am
From: eliben <eli...@gmail.com>
Date: Tue, 30 Jun 2009 07:54:42 -0700 (PDT)
Local: Tues, Jun 30 2009 10:54 am
Subject: Re: Loading user contributed Python-code plugins in a packed application

> You should do absolutely nothing, it should work out of the box.

> PyInstaller first searches for imports within the big .exe, and then
> look for them outside. If you bundle your API as a normal python package
> within the big .exe, by simply importing it somewhere, it will
> automatically be available for plugins.
> --

Hello Giovanni, thanks for the reply - I'll see how it goes.
Eli

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google