Skip to content
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

local config #2

Open
joergfunger opened this issue Mar 19, 2022 · 2 comments
Open

local config #2

joergfunger opened this issue Mar 19, 2022 · 2 comments

Comments

@joergfunger
Copy link
Owner

@muh-hassani I looked into the code, not sure if we need to copy the templates to a directory. That would make work more complicated, since people would usually have their own git repo with all the relevant templates being there. Working with copies might give problems (because we actually have two files that are supposed to have the same content). Instead of collecting all templates in shared folder, I would rather have the option of adding a directory where templates could be stored. This way, people are more flexible either using a common shared structure, or use their local repo (not pyiron, but just the templates, e.g. in another git repo) and point to it.

@max-hassani
Copy link
Collaborator

max-hassani commented Mar 21, 2022

@joergfunger, it might be not convenient, but the way pyiron works is that it has a central resources directory, in which pyiron looks for the templates directory. You can create a similar resource repository on git and have several submodules. If you want to create a large set of template script jobs, I suggest you to fork https://github.com/pyiron/pyiron-resources, and make your changes according to https://pyiron.readthedocs.io/en/latest/source/installation.html#advanced-configuration.

@joergfunger
Copy link
Owner Author

at least under linux we could use softlinks (not sure if pyiron works under windows anyway)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants