eric7/Project/Project.py

branch
eric7
changeset 9141
7085ece52151
parent 9125
3d2411181b3c
child 9142
990abeef759f
diff -r 6bbb4e047902 -r 7085ece52151 eric7/Project/Project.py
--- a/eric7/Project/Project.py	Wed Jun 08 19:13:35 2022 +0200
+++ b/eric7/Project/Project.py	Thu Jun 09 16:13:18 2022 +0200
@@ -3788,6 +3788,18 @@
         except KeyError:
             return ""
     
+    def getProjectLicense(self):
+        """
+        Public method to get the license type used by the project.
+        
+        @return license type of the project
+        @rtype str
+        """
+        try:
+            return self.pdata["LICENSE"]
+        except KeyError:
+            return ""
+    
     def __isInPdata(self, fn):
         """
         Private method used to check, if the passed in filename is project

eric ide

mercurial