[GH-ISSUE #489] how can we change the running command ? #382

Closed
opened 2026-02-26 12:21:25 +03:00 by kerem · 6 comments
Owner

Originally created by @xalteropsx on GitHub (May 23, 2024).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/489

Originally assigned to: @xalteropsx on GitHub.

is their a way to change runtime directory cause exe run always store temp in temporary folder and c drive many time slower then other drive like i have many ssd i dont want c drive to load more junk also is their a way to change command line like python run panda i want to change uvicorn run etc

Originally created by @xalteropsx on GitHub (May 23, 2024). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/489 Originally assigned to: @xalteropsx on GitHub. is their a way to change runtime directory cause exe run always store temp in temporary folder and c drive many time slower then other drive like i have many ssd i dont want c drive to load more junk also is their a way to change command line like python run panda i want to change uvicorn run etc
kerem closed this issue 2026-02-26 12:21:25 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (May 23, 2024):

👋 Hi, just a reminder that if you haven't read the help post yet, give it a read to see if your issue is covered in it and make sure to follow the debugging section.

Also please note, as stated in the README, if your issue is only associated with your application and not auto-py-to-exe itself, please do not create an issue in this repository - instead, comment on the help post, video or create a new discussion.

<!-- gh-comment-id:2126453369 --> @github-actions[bot] commented on GitHub (May 23, 2024): 👋 Hi, just a reminder that if you haven't read [the help post](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/) yet, give it a read to see if your issue is covered in it and make sure to follow [the debugging section](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/#debugging). Also please note, as stated in the README, if your issue is only associated with your application and not auto-py-to-exe itself, please do not create an issue in this repository - instead, comment on the help [post](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/), [video](https://youtu.be/OZSZHmWSOeM) or create a [new discussion](https://github.com/brentvollebregt/auto-py-to-exe/discussions).
Author
Owner

@xalteropsx commented on GitHub (May 23, 2024):

also how can we change temporary directory to root directory while running exe ?

<!-- gh-comment-id:2126556506 --> @xalteropsx commented on GitHub (May 23, 2024): also how can we change temporary directory to root directory while running exe ?
Author
Owner

@brentvollebregt commented on GitHub (May 25, 2024):

is their a way to change runtime directory cause exe run always store temp in temporary folder

You can use --build-directory-override to change the directory where the build occurs.

i dont want c drive to load more junk

The temporary folder is deleted when the application is closed

is their a way to change command line like python run panda i want to change uvicorn run etc

The executable functions exactly as if you were to run the Python script you gave it. If you want it to do anything extra, make the Python script do it and then package that.

<!-- gh-comment-id:2131219529 --> @brentvollebregt commented on GitHub (May 25, 2024): > is their a way to change runtime directory cause exe run always store temp in temporary folder You can use `--build-directory-override` to change the directory where the build occurs. > i dont want c drive to load more junk The temporary folder is deleted when the application is closed > is their a way to change command line like python run panda i want to change uvicorn run etc The executable functions exactly as if you were to run the Python script you gave it. If you want it to do anything extra, make the Python script do it and then package that.
Author
Owner

@xalteropsx commented on GitHub (Jun 1, 2024):

sorry for late reply

--build-directory-override i didnt see any setting inside auto-py-to-exe // may be if i am not wrong u mention it for only building app i mean like when the app run after build it keep extract its internal files on temporary c drive like everytime u run .exe it keep create temporary store that will slow c drive also many face less storage (single executable build)
2nd part
i didnt understand how can we change running method from existing venv file

<!-- gh-comment-id:2143167639 --> @xalteropsx commented on GitHub (Jun 1, 2024): sorry for late reply --build-directory-override i didnt see any setting inside auto-py-to-exe // may be if i am not wrong u mention it for only building app i mean like when the app run after build it keep extract its internal files on temporary c drive like everytime u run .exe it keep create temporary store that will slow c drive also many face less storage (single executable build) 2nd part i didnt understand how can we change running method from existing venv file
Author
Owner

@brentvollebregt commented on GitHub (Jun 1, 2024):

--build-directory-override sets the directory where auto-py-to-exe packages your application. If you don't want your exe decompressing to a temp directory, do not use "one file" mode.

i didnt understand how can we change running method from existing venv file

Packaging your application will make it work the same as doing python my_script.py - if you want to do anything fancy, you need to do it in Python.

<!-- gh-comment-id:2143223380 --> @brentvollebregt commented on GitHub (Jun 1, 2024): `--build-directory-override` sets the directory where auto-py-to-exe packages your application. If you don't want your exe decompressing to a temp directory, do not use "one file" mode. > i didnt understand how can we change running method from existing venv file Packaging your application will make it work the same as doing `python my_script.py` - if you want to do anything fancy, you need to do it in Python.
Author
Owner

@xalteropsx commented on GitHub (Jun 1, 2024):

i guess u are right one file always has some issue rather using multi build work great but having --build directory override also good >.</ thanks alot

<!-- gh-comment-id:2143272251 --> @xalteropsx commented on GitHub (Jun 1, 2024): i guess u are right one file always has some issue rather using multi build work great but having --build directory override also good >.</ thanks alot
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#382
No description provided.