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

Not possible to execute main programs from a folder #3020

Closed
jkiviluo opened this issue Dec 1, 2024 · 1 comment · Fixed by spine-tools/spine-items#238
Closed

Not possible to execute main programs from a folder #3020

jkiviluo opened this issue Dec 1, 2024 · 1 comment · Fixed by spine-tools/spine-items#238

Comments

@jkiviluo
Copy link
Member

jkiviluo commented Dec 1, 2024

Sometimes the root folder of an execution should be parent of the folder where the main program is. E.g. structure

src --> main_program
input --> input files

Trying to use src/main.py for main program fails (the error message is not very helpful).

Relates to having actual root folder: #2958 (comment)

@jkiviluo jkiviluo changed the title Not possible to main programs from a folder Not possible to execute main programs from a folder Dec 1, 2024
@ptsavol
Copy link
Member

ptsavol commented Dec 2, 2024

Related to #799.

ptsavol added a commit to spine-tools/spine-items that referenced this issue Dec 4, 2024
ptsavol added a commit that referenced this issue Dec 20, 2024
- Add helper function to browse for root directory
- Update release notes

Re #3020
ptsavol added a commit to spine-tools/spine-items that referenced this issue Dec 20, 2024
- Use Tool item's root directory in setting program files in Tool Specification Editor if available
- Add root directory line edit to Tool properties
- Save Tool's (serialized) root directory into local project settings
- Add notification on tools in design view when the main program file can not be found
- Make start directories in Tool Specification Editors' file browsers more convenient

Re spine-tools/Spine-Toolbox#3020
Re spine-tools/Spine-Toolbox#1499

---------

Co-authored-by: Pekka T Savolainen <pekka.t.savolainen@vtt.fi>
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

Successfully merging a pull request may close this issue.

2 participants