473,406 Members | 2,619 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,406 software developers and data experts.

Py2exe... & hiding propritary stuff in the exe

Maybe there is another group for posting this... I am a total newbie to
Python... so please forgive me if I ask a bunch of inappropriate
questions... as I am a big question asker.

If I develope an application in Python and use the Py2exe (hope I have that
right) tool... can I embed certain files... like graphic files... and even
video files... into the exe... so that they reside there, during
execution... as opposed to uncompressing into seperate files upon
installation.

For example, if I have a propritary graphic/slide and/or short propritary
video that I don't want to be a 'standalone' file... like a jpg or mov or
whatever... as I don't want people to be able to re-distribute the proteray
graphic/movie files w/o my application... will Py2exe or some other tool or
method bury those some way... like keeping them as data in the exe file?

It's been a long time since I have programed, but Python has got me
interested again.

Thanks for any suggestions.

Will
Jul 18 '05 #1
2 1681
"Will" <ws*******@netpv.com> writes:
Maybe there is another group for posting this... I am a total newbie to
Python... so please forgive me if I ask a bunch of inappropriate
questions... as I am a big question asker.

If I develope an application in Python and use the Py2exe (hope I have that
right) tool... can I embed certain files... like graphic files... and even
video files... into the exe... so that they reside there, during
execution... as opposed to uncompressing into seperate files upon
installation.

For example, if I have a propritary graphic/slide and/or short propritary
video that I don't want to be a 'standalone' file... like a jpg or mov or
whatever... as I don't want people to be able to re-distribute the proteray
graphic/movie files w/o my application... will Py2exe or some other tool or
method bury those some way... like keeping them as data in the exe file?


py2exe allows to include data files as windows resources in the exe
file. Another thing you may be interested in is Mike Fletcher's
resourcepackage:

http://resourcepackage.sourceforge.net/

Thomas
Jul 18 '05 #2
Will wrote:
For example, if I have a propritary graphic/slide and/or short propritary
video that I don't want to be a 'standalone' file... like a jpg or mov or
whatever... as I don't want people to be able to re-distribute the proteray
graphic/movie files w/o my application... will Py2exe or some other tool or
method bury those some way... like keeping them as data in the exe file?


How will that proprietary media be used? I ask because once you go to view it,
won't it be completely open and available to the user anyway? (if it's a jpg,
then the user could just take a screen shot of it, and if it's a movie, then
you either have to make it available on the filesystem so the video player can
play it, or go through the non-trivial tasks of streaming the data to the
player, in which case the player's own DRM scheme may be better as true media
access control requires integration with the media sink or player, and not just
the transport).

-Dave
Jul 18 '05 #3

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

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
2
by: Stefan Behrens | last post by:
Hi, does anybody know how I can get py2exe to work with wxPython's wxCalendarCtrl? Currently, I have just a "standard" setup.py, and py2exe gives me a syntax error. Do I need to include any...
2
by: Achim Domma | last post by:
Hi, I managed to build a simple com server with py2exe. My script only imports codecs and re, but the dist folder contains tcl84.dll, tk84.dll and win32ui.pyd. Can somebody tell me why? And how...
8
by: Kathleen Kudzma | last post by:
Does anyone know how to resolve the following problem that I'm getting in Python 2.2 and 2.3? PROBLEM: When I try to create a classReader object I get an exception: "SAXReaderNotAvailable: No...
3
by: Marc | last post by:
Hi all, I know that to hide a console normally you simply change the extension from .py to .pyw. That's simple enough. However I can't seem to accomplish the same thing after freezing the...
10
by: Thomas Heller | last post by:
**py2exe 0.5.0** (finally) released =================================== py2exe is a Python distutils extension which converts python scripts into executable windows programs, able to run without...
1
by: Funduk | last post by:
Hello, So I've been playing with Python and Pygame for a while and I decided I wanted to make a real executable so I could send that stuff over to my friends to show off my <sarcasm>maad...
0
by: Robin Becker | last post by:
Don't know if this is the right place to ask, but has anyone considered using something like tcl's freewrap code to integrate tkinter into py2xe single executables? We currently use the (fairly...
9
by: Isaac Rodriguez | last post by:
Hi, I am looking for feedback from people that has used or still uses Py2Exe. I love to program in python, and I would like to use it to write support tools for our development team, but I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.