Python4Capella not reading Script Locations

Hello,

I’m having an issue defining a “Script Locations” for Python4Capella. When I select “Add File System” from the Script Locations menu, and specify the location on my file system, it still won’t be shown under the Python4Capella project.

I tried creating a folder form the contextual menu of the Python4Capella project (new>folder), which successfully created the folder on my file system. However, when I placed a script inside that folder, it still doesn’t appear in Capella’s project explorer.

Also, when I tried to add the script inside the “sample_scripts” folder, It still doesn’t appear in Capella’s project explorer.

Can you please help me figuring out how to link folders and scripts to Python4Capella?

P.S. The sample scripts are working fine, so I believe there is no problem in my python configuration

Regards,
Ebrahim

Hello Ebrahim,

You need to refresh the folder content in Capella F5 or the popup menu refresh. It might not work in the Capella perspective, you can open an other perspective (for instance the Java perspecive) to trigger the refresh.

As an alternative you can use the import menu to import your file from the file system.

Thank you Yvan for your reply!

Unfortunately, refreshing-even with perspective change- didn’t work for me. However, importing the scripts worked.

Thanks again.

1 Like