![python to exe online converter python to exe online converter](https://img-blog.csdnimg.cn/img_convert/ac741ff6189a25508fb5db1665c1890c.png)
The options that are used frequently under advanced are -name and -hidden-import. In one directory mode, even the config files that will be used by the application should be declared in this section. This ephemeral nature of files is only applicable when the one-file option is used. the changes that are made to the files by the program in its running state will not be available when the application is launched the next time. All the files that are stored inside the executable are stateless i.e.
![python to exe online converter python to exe online converter](https://i.ytimg.com/vi/UR_y3LTo1ug/maxresdefault.jpg)
This option should not be used to store configuration files in the executable. Using this option we can define all the static files that also need to be packaged with the executable. py files that are used by the code in the executable that is created. ico) that will be used as the icon for the executable. This option is used to select an image (. Use this option only when the application has a GUI. The window-based option hides the terminal and all the output that is logged to the terminal. The console-based option is used when the application does not have a GUI or when the application output is logged to the terminal.
![python to exe online converter python to exe online converter](https://i.ytimg.com/vi/HY0Hgi_rrrc/maxresdefault.jpg)
When using one directory option no changes in the code have to be made to reference files. The directory will contain all the dependencies and assets that are required to run the code. The one-directory option will create a directory that will contain an executable that will launch the application. When using this option there is a small modification that has to be made in the code for the executable to be able to reference files that are stored inside it. The one-file option will produce a single executable that will contain all the application code along with all of its dependencies and static assets. In the script location field, the Python file that starts the application has to be mentioned. The GUI will open up in the default browser configured on the system.