PluginProjectPyramid.py

branch
eric7
changeset 148
dcbd3a96f03c
parent 147
eb28b4b6f7f5
child 150
b916658d5014
diff -r eb28b4b6f7f5 -r dcbd3a96f03c PluginProjectPyramid.py
--- a/PluginProjectPyramid.py	Tue Jun 01 19:37:46 2021 +0200
+++ b/PluginProjectPyramid.py	Sun Jun 06 16:30:37 2021 +0200
@@ -435,3 +435,16 @@
             return list(self.__menus.keys())
         else:
             return []
+
+
+def installDependencies(pipInstall):
+    """
+    Function to install dependencies of this plug-in.
+    
+    @param pipInstall function to be called with a list of package names.
+    @type function
+    """
+    try:
+        import cookiecutter         # __IGNORE_WARNING__
+    except ImportError:
+        pipInstall(["cookiecutter"])

eric ide

mercurial