nasa / fprime-tools

F´ Python tooling and helpers.
https://github.com/nasa/fprime
Apache License 2.0
20 stars 38 forks source link

Fixing python executable when only python3 exists #131

Closed LeStarch closed 1 year ago

LeStarch commented 1 year ago
Originating Project/Creator
Affected Component
Affected Architectures(s)
Related Issue(s)
Has Unit Tests (y/n)
Builds Without Errors (y/n)
Unit Tests Pass (y/n)
Documentation Included (y/n)

Change Description

fprime-util new --project calls python directly and does not use the sys.executable reference to the executable. Thus on systems where python3 exists but not python the above call will break.

This PR switches that use to sys.executable to ensure a valid python will always be used.

LeStarch commented 1 year ago

@thomas-bc when you see this, could you review. If you agree with it, merge it, and make a hotfix release (v3.2.1) as we need it next week.

LeStarch commented 1 year ago

@thomas-bc never-mind I see your approval, I'll do the rest. Didn't expect a response this late.