CopperSpice API  1.7.2
Plugin Deployment

This section explains how to deploy any required plugins with your CopperSpice application and then load at runtime.

### Plugin Directory

Your application executable directory is referred to as the pluginsbase. This path can be anything which is appropriate for the given platform. As an example, suppose we have a Windows application which is installed to the path shown below. If the application requires the PostgreSQL plugin the following directory will be searched first.

// installation path
C:\Program Files\MyApp
// plugin path location for SQL drivers
C:\Program Files\MyApp\sqldrivers

To override all the default locations use QCoreApplication::setLibraryPaths().

### Configuration File

The cs.conf file can also be used to override the hard coded paths compiled into the CopperSpice library. For more information about the conf file refer to Plugin Path Configuration.

### Environment Variable

You can also set set the CS_PLUGIN_PATH environment variable before running your application. If set CopperSpice will look for plugins in the paths (separated by the system path separator) specified in the variable.