Integrating Custom Modules
You can add your own Python modules to GisLink applications. This can be accomplished in two ways:
- Install the module in “C:\Program Files\Cadcorp SIS Desktop 9.1\Python\Lib\site-packages”. The module should automatically be available to load via the Python “import” syntax.
- Install the module anywhere on the system (e.g. Custom folder), and append the location to the sys.path variable at the beginning of your GisLink script.
cadcorp_version = '1.0' cadcorp_vendor = 'Cadcorp' import gislink import sys sys.path.append("C:\\MyModule") import MyModule