Skip to content

snapcraft: allow to run subiquity.python#2334

Open
ogayot wants to merge 1 commit intocanonical:mainfrom
ogayot:snapcraft-python
Open

snapcraft: allow to run subiquity.python#2334
ogayot wants to merge 1 commit intocanonical:mainfrom
ogayot:snapcraft-python

Conversation

@ogayot
Copy link
Member

@ogayot ogayot commented Mar 3, 2026

This makes it possible to run:

  $ snap run subiquity.python

to get an interactive shell where the modules are the ones that are shipped in the subiquity snap (i.e., subiquity, probert, curtin, ...).

It is very useful to debug a specific function if dry-run is not an option.

One can also pass arguments to the python process. Be careful if you pass a path to a file, it must be an absolute path.

  $ snap run subiquity.python /path/to/file.py

This makes it possible to run:

  $ snap run subiquity.python

to get an interactive shell where the modules are the ones that are shipped in
the subiquity snap (i.e., subiquity, probert, curtin, ...).

It is very useful to debug a specific function if dry-run is not an option.

One can also pass arguments to the python process. Be careful if you pass a
path to a file, it must be an absolute path.

  $ snap run subiquity.python /path/to/file.py

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
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.

1 participant