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 7175687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:21:15+00:00 2026-05-28T16:21:15+00:00

I need to have an executable file (.exe) which takes some parameters from a

  • 0

I need to have an executable file (.exe) which takes some parameters from a file which can be configured by the user depending on his/her need. Since i have created scripts in python, i have used py2exe to create that executable. Though i could place a configurable file called settings.dat as data file and use it to customize, i feel it would be better if the configurable file is python file (lets say settings.py) and use it import the variables declared in it.

So settings.py shouldn’t be included in library.zip and i would like it to be included as it is and make it configurable by user. Is this possible ?

Is there any way to avoid creating library.zip and just put all dependency files in a sub folder ? (In this case i can just put settings.py inside it, since settings.pyc is derived from it any changes made to settings.py will get reflected)

  • 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-05-28T16:21:17+00:00Added an answer on May 28, 2026 at 4:21 pm

    Is there any way to avoid creating library.zip and just put all
    dependency files in a sub folder ?

    Yes, set the skip_archive option to True.

    http://www.py2exe.org/index.cgi/ListOfOptions

    EDIT: The pyc files are placed in the same folder where the zip file would have been. The zipfile keyword controls the path to the zip. This puts the files in subfolder foo:

    setup(  
        ...
    
        zipfile="foo/bar.zip", 
        options={"py2exe": {"skip_archive": True}})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a python script which should invoke a .exe file to get some
I have an executable file (program.exe) That is virus infected. Is there any possible
I need to disassemble an executable file made from C . My lecturer said
I have two .exe file and 3 windows batch files and i need to
i would like to execute an executable file with some parameters. I would like
In my application I have 3 major parts: Exe : an executable file Lib_A
I have an executeable (Command line which requires arguments/parameters) i need to run on
I have an executable which is hosted on a server and can be launched
I need to run an application on the server. I have an executable file,
I have a setup executable that I need to install. When I run it,

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.