Serial port name can't be an expInfo variable

OS : win 11
PsychoPy version : 2023.1.0
Standard Standalone? : yes
What are you trying to achieve?:
For an EEG experiment (local), I was setting up serial port before using a code component.
For the port name field, instead of setting it up in the code component, I was using the expInfo dictionnary to set it ut accordingly at the beginning of each experiment.

What did you try to make it work?
What specifically went wrong when you tried that?:
Wanting to do the same in the new serial port component, It is currently not possible, as the serial port is set up before the expInfo dictionnary is initialised in the python file.
(I got an error that expInfo was not recognized when setting up the port name)

is it possible to set up the serial port after the expInfo dictionnary ? or will it stay up there ?

best,

Emma