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

pysim-run.sh: launches any app in BlockEditor #94

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

zdebanos
Copy link
Contributor

Basically, this script acts as a launch wrapper around all .py files in BlockEditor because of the exported PYTHONPATH envvar.

pysim-run.sh Outdated
@@ -1,5 +1,21 @@
#!/bin/sh

# find all .py applications
applications=$(find BlockEditor -name "*.py" -execdir basename {} \; | sed s/.py//)
appname="$1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would maybe open pysimCoder if the script is run without any argument.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if I want to launch pysimCoder with an argument, for example a .dgm file? Perhaps two separate scripts would be fine, one for the pysimCoder only (pysim-run.sh before) and the other for other helper apps.

Copy link
Contributor

@michallenc michallenc Jan 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could still call ./pysim-run.sh pysimCoder file.dgm. The idea was just to add a default option that would open pysimCoder if I run the script without argument, but keep pysimCoder option there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get it now, only to be used in the simplest scenario.

Basically, this script acts as a launch wrapper around all .py
files in BlockEditor because of the exported PYTHONPATH envvar.

Signed-off-by: Stepan Pressl <[email protected]>
@robertobucher robertobucher merged commit a1fa403 into robertobucher:master Jan 30, 2025
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 this pull request may close these issues.

3 participants