diff options
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/plugins/deploy_plugin.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py index c0018edd..42d27ff3 100644 --- a/morphlib/plugins/deploy_plugin.py +++ b/morphlib/plugins/deploy_plugin.py @@ -507,6 +507,14 @@ class DeployPlugin(cliapp.Plugin): deployment_type, location = deployment_type_and_location( system_id, final_env, is_upgrade) + extensions_dir = os.path.join( + root_repo_dir.dirname, + os.path.dirname(deployment_type)) + if 'PYTHONPATH' in final_env: + final_env['PYTHONPATH'] += ':%s' % extensions_dir + else: + final_env['PYTHONPATH'] = extensions_dir + components = self._sanitise_morphology_paths( deploy_params.get('partial-deploy-components', []), sb) if self.app.settings['partial']: |