How do I specify a custom output direcory

25 views
Skip to first unread message

Rob V

unread,
Apr 3, 2020, 3:19:27 AM4/3/20
to PyInstaller
Hello,

How do I specify an output directory for the dist and build folders?  I'd like to have one output directory containing results at a user specified location.

abhishek bhatta

unread,
Apr 3, 2020, 3:34:52 PM4/3/20
to PyInstaller
I usually prefer making a batch/shell script to copy the file after creating the executable.

Rob V

unread,
Apr 4, 2020, 5:14:53 AM4/4/20
to PyInstaller
So there is no way to tell pyinstaller to output to a specific directory?

Eric Fahlgren

unread,
Apr 4, 2020, 12:17:09 PM4/4/20
to pyins...@googlegroups.com
Did you try 'pyinstaller -h'?  I see:

  --distpath DIR        Where to put the bundled app (default: .\dist)
  --workpath WORKPATH   Where to put all the temporary work files, .log, .pyz
                        and etc. (default: .\build)
 

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/6d0c0b03-8a07-43b8-b80d-ecf059126048%40googlegroups.com.

Rob V

unread,
Apr 5, 2020, 7:40:31 AM4/5/20
to pyins...@googlegroups.com
Ok I could try that.  I'm producing the dist and build folders with many files in dust not just a single executable.  I do this because I read somewhere the application runs faster.  It would be nice to have a single outputs directory somewhere besides where pyinstaller automatically puts the outputs.  This seems simple and I figured I was just missing something.   I guess I will just use your batch scripting approach. 

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.

Amir Rossert

unread,
Apr 5, 2020, 8:33:43 AM4/5/20
to PyInstaller
Hi Rob,

You can use the --distpath and --workpath options to controll the dist and build path.
Here is the doc for all the available options:

Rob V

unread,
Apr 6, 2020, 4:14:59 AM4/6/20
to PyInstaller
Hello - thanks the --workpath and --distpath worked great and are now working in my batch script.  Thanks Guys!!
Reply all
Reply to author
Forward
0 new messages