Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8175851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:55:26+00:00 2026-06-06T22:55:26+00:00

I have to generate an executable (.exe) file from my python program. I would

  • 0

I have to generate an executable (.exe) file from my python program. I would like to store information in a persistent way within this .exe file itself.

Normally I would prickel it into an external file, however for me it is important that the information is stored in the .exe file itself and not externally.

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T22:55:28+00:00Added an answer on June 6, 2026 at 10:55 pm

    If you want read-write data:

    Don’t do this. An executable changing itself isn’t guaranteed to work. Some executables write data at the end of the file (in theory) but you don’t know:

    • whether antivirus software will pick this behaviour up as part of behavioural analysis
    • whether the executable is actually writable from the executable process
    • whether data you write might become executable in theory and result in a security exploit
    • whether you’ll want to update a new release to the code next week, which will replace the executable file and lose the data

    [Nearly] all software is able to get by with ‘normal’ file storage (i.e. in a user / application data directory).

    If you just want read-only data:

    Fine, no problem. Write a Python file with the data in it, as a variable in a module. You can write a python file as part of your build process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my application I have 3 major parts: Exe : an executable file Lib_A
I use maven 3.0.3 and have tried to generate pom for third-party jar like
To generate an ouput file (.rwo format) containing the desired result, we have to
I have a python program with a wxpython GUI and some command line parameters.
I have to call an executable file in Ubuntu... Just learned how to make
I have a program that depends on a configuration file for three settings. I
I have a VB6 Standard EXE with no embedded type library. I'd like to
I have this method which generates a license by running an exe program on
I have python application that shoud be launched as windows executable. I'm using py2exe
From Does the program counter always have to change (upon a clock tick)? ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.