#1
|
|||
|
|||
Vizcore.cfg - help with syntax
As I mentioned in the previous post, our lab is getting bigger and we are making a push to organize our code development. One of the things we are working on is a central network folder for resources. We can add this folder to any script using
Code:
viz.res.addPath('//rootname/foldername/Components/resources') Code:
viz.resource.path('//rootname/foldername/Components/resources')
__________________
Virtual Environments and Multimodal Interaction (VEMI) Lab This time, it should work... |
#2
|
|||
|
|||
Have a look at the Configuration settings basics page in the docs, it explains how to add options to your vizcore.cfg file. In this case you would add the following line:
Code:
viz.resource.path = //rootname/foldername/Components/resources |
#3
|
|||
|
|||
Yes, that's the page I was looking at, but when I tried to modify the option with the equals sign, I was using quotation marks as well, so that's why that wasn't working. Thanks.
So is it possible to modify the sys.path in the vizcore.cfg file as well? Or will we have to add the path manually on every computer?
__________________
Virtual Environments and Multimodal Interaction (VEMI) Lab This time, it should work... |
#4
|
|||
|
|||
During initialization, the Python interpreter will attempt to import sitecustomize. This allows you to make customizations to your Python environment. So create a file called sitecustomize.py and place it anywhere on the default module search path (i.e. Vizard/bin folder) and it will be imported before any Vizard script is executed.
|
#5
|
|||
|
|||
That did the trick. Thank you very much!
__________________
Virtual Environments and Multimodal Interaction (VEMI) Lab This time, it should work... |
|
|