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

Path for extra script inside a library #4220

Closed
FernandoGarcia opened this issue Apr 9, 2022 · 4 comments
Closed

Path for extra script inside a library #4220

FernandoGarcia opened this issue Apr 9, 2022 · 4 comments
Assignees
Milestone

Comments

@FernandoGarcia
Copy link

Hi!

I was asking on forum about the right path to execute a script inside a library.

At first time I was using:

extra_scripts = 
 pre:.pio\libdeps\esp32dev\esp8266-react\scripts\build_interface.py

But changing the ENV brakes the path. So Max suggested me to use $PROJECT_LIBDEPS_DIR\$PIOENV\esp8266-react\scripts\build_interface.py but while PIO is showing the right path on terminal it gives an error of wrong path.

89faa98a0192d1e2d40c38a62b5cceb95625121d

Then Max asked me to open this issue.

Best regards.

@ivankravets
Copy link
Member

Could you provide a simple project to reproduce this issue?

@FernandoGarcia
Copy link
Author

Hi!

Try this:

#include <Arduino.h>
void setup(){}
void loop(){}
[env:esp32dev]
platform = espressif32
framework = arduino
board = esp32dev
monitor_speed = 115200
lib_deps = 
	maakbaas/ESP8266 IoT Framework
extra_scripts = 
	pre:$PROJECT_LIBDEPS_DIR\$PIOENV/ESP8266 IoT Framework/scripts/preBuild.py

Best regards.

@ivankravets
Copy link
Member

Thanks for the report! Fixed in the latest dev-version. Please re-test with pio upgrade --dev.

@FernandoGarcia
Copy link
Author

Yes, it's working now.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants