-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom directory structure #268
Comments
Implementation hints to myself:
The code for importing the settings need to be altered though:
|
rainman110
added a commit
to rainman110/fbs
that referenced
this issue
Mar 7, 2022
This PR implements a custom directory structure for fbs. Note: the previous directory structure is still used by default. Implementation details ---------------------- A customized directory structure is implemented as follows: - Default directories are configured in _defaults/src/build/settings/base.json - If the file `fbs_directories.json` in the root directory exists it will be read by fbs. Here, custom paths can be set, with the following options - python_dir : Directory of the python code - icons_dir : Directory of the icons - resources_dir: Directory of other resources.py - settings_dir: Directory of the fbs settings - freeze_config_dir: Configuration files for the freeze command - Eventually, the remaining fbs settings are read (either from the default or user configured path) I had to alter the check for the root directory, as it assumed a fixed directory structure. Now, it will check for the default settings path or the existence of the fbs_directories.json file. Testing ------- I tested the functionality on the fbs test app, that is created by the fbs tutorial. I tested the commands `run`, `freeze` and `installer` successfully. I tested only on windows though. Mac and Linux are yet untested. Closes mherrmann#268
What is the syntax for adding custom directories under main/python? How do we specify the directories where we can import scripts from that work in frozen versions of the application? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is probably asked already, but I could not find it here in the issue tracker.
Is there any plan to support a customized directory structure?
Currently, adding FBS to a already existing app needs a complete restructuring of the app, whose new structure does not comply to regular python projects. This seems to be very intrusive for me. A build system / packing system should not require this.
Ideally, the directory structure could be configured with a lets say json file.
By the way, I am willing to support coding - maybe just need some hints where the directory structure is defined etc...
The text was updated successfully, but these errors were encountered: