Skip to content

Commit

Permalink
fix(setup/pico): set PICO_EXAMPLES_DIR env var in exports file (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
HipsterBrown authored Nov 27, 2024
1 parent 34087a8 commit affd956
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/toolbox/setup/pico.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,19 @@ export default async function (): Promise<void> {
)
}

if (process.env.PICO_EXAMPLES_DIR === undefined) {
spinner.info('Setting PICO_EXAMPLES_DIR')
process.env.PICO_EXAMPLES_DIR = PICO_EXAMPLES_PATH
await upsert(
EXPORTS_FILE_PATH,
`export PICO_EXAMPLES_DIR=${PICO_EXAMPLES_PATH}`,
)
} else {
spinner.info(
`Using existing $PICO_EXAMPLES_DIR: ${process.env.PICO_EXAMPLES_DIR}`,
)
}

// 4. Build some pico tools:
if (
filesystem.exists(PICO_SDK_BUILD_DIR) === false ||
Expand Down

0 comments on commit affd956

Please sign in to comment.