Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resources handling #23

Closed
avalentino opened this issue Jun 1, 2013 · 4 comments
Closed

Resources handling #23

avalentino opened this issue Jun 1, 2013 · 4 comments
Assignees
Milestone

Comments

@avalentino
Copy link
Owner

Currently image resources are handled using the Qt resources system.
Handling of other resources is poor and inconsistent.

Improve the resources handling system so that:

  • it is more general and consistent
  • don't use Qt resources system (in order to reduce the source package size)
  • supports packaging with both setuptools and pyinstaller
  • supports standard python packaging and deb/rpm one
@ghost ghost assigned avalentino Jun 1, 2013
@avalentino
Copy link
Owner Author

Imported from trac issue 6. Created by a_valentino on 2009-08-21T09:45:14, last modified: 2009-08-22T11:47:18

@avalentino
Copy link
Owner Author

Trac comment by a_valentino on 2009-08-21 13:00:53:

Initial version committed in r477.

It consists in:

  • a new {{{appsite.py}}} file that stores standard applications paths (e.g. {{{DATADIR}}}, {{{DOCDIR}}}, {{{LICENSEFILE}}}, {{{SYSPLUGINSDIR}}}, {{{USERCFGDIR}}})
  • a new {{{utils.getresource}}} function that builds the resource path taking into account the package (if any) and handling imports from compressed eggs and packaged environments (generated using [http://www.pyinstaller.org pyinstaller]).

@avalentino
Copy link
Owner Author

Trac comment by a_valentino on 2009-08-22 11:44:20:

Replying to [comment:2 a_valentino]:

Initial version committed in r477.

It consists in:

  • a new {{{appsite.py}}} file that stores standard applications paths (e.g. {{{DATADIR}}}, {{{DOCDIR}}}, {{{LICENSEFILE}}}, {{{SYSPLUGINSDIR}}}, {{{USERCFGDIR}}})
  • a new {{{utils.getresource}}} function that builds the resource path taking into account the package (if any) and handling imports from compressed eggs and packaged environments (generated using [http://www.pyinstaller.org pyinstaller]).

Three new utility functions added in r482-r484:

  • getuifile
  • geticonfile
  • geticon

@avalentino
Copy link
Owner Author

Trac comment by a_valentino on 2009-08-22 11:47:18:

Fixed in r490.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant