05-17-2019 09:46 AM
Hello,
I'm developing a VI-Library (for TestStand) which will be used on different test and development systems.
I changed the Configuration Directory of TestStand to a folder inside my library (D:/Lib/TS_config).
Inside the Library I also have a folder with my Type Palettes for my custom step types (D:/Lib/TS/Type Palettes)
I changed the "TypePalettes.cfg" in the TS_config folder, so all my custom step types are included.
<value arrayindex='[9]'>D:\Lib\TS\Type Palettes\TPL_Configuration.ini</value>
But in case the Library is not always put to the D drive this doesn't work anymore. Is there a way to make this path relative? I tried the following, which wasn't working.
<value arrayindex='[9]'>..\TS\Type Palettes\TPL_Configuration.ini</value>
Thank you for any help 🙂
07-09-2019 09:21 AM - edited 07-09-2019 09:22 AM
Hello 0815,
I have a potential solution for you.
TypePalettes.cfg supports using environment variables. Setting one up with the current path to your library might be a solution for you. This is example is from my machine:
<value arrayindex='[0]'>%TestStandPublic%Components\TypePalettes\MyTypes.ini</value> <value arrayindex='[1]'>%TestStand%Components\TypePalettes\NI_DatabaseTypes.ini</value>
These demo env. variables point here:
Relative paths might work as well, however I assume they might be relative to the TestStand executable or its working directory (as defined in Windows), not the .cfg file - which would be no help for your original question.