10-08-2024, 03:55 PM
OK, I know this should be easy but I am having trouble with this and the search results are not helping. A Python script (in the RoboDk station) needs to use a "non-standard" Python module. I have installed the shared_memory_dict module using pip from a DOS window and it works fine in all Python scripts outside of RoboDK.
The SVG example in the documentation uses this code:
I have tried my version of this example code but it does not work
Could you please recommend a better way to use other modules? Is it possible to use pip to install the module directly into C:/RoboDK/Python-Embedded?
Thanks for your help.
The SVG example in the documentation uses this code:
Code:
# locate and import the svgpy module
path_stationfile = RDK.getParam('PATH_OPENSTATION')
sys.path.append(os.path.abspath(path_stationfile)) # temporary add path to import station modules
from svgpy.svg import *
I have tried my version of this example code but it does not work
Code:
path_stationfile = self.RDK.getParam('PATH_OPENSTATION')
sys.path.append(os.path.abspath(path_stationfile))
from shared_memory_dict import SharedMemoryDict
Could you please recommend a better way to use other modules? Is it possible to use pip to install the module directly into C:/RoboDK/Python-Embedded?
Thanks for your help.