Clone of official tools

Revision:
43:2a7da56ebd24
Parent:
40:7d3fa6b99b2b
--- a/export/simplicity/__init__.py	Mon Nov 06 13:17:14 2017 -0600
+++ b/export/simplicity/__init__.py	Tue Sep 25 13:43:09 2018 -0500
@@ -15,6 +15,7 @@
 limitations under the License.
 """
 from os.path import split,splitext, basename
+from os import remove
 
 from tools.export.exporters import Exporter, deprecated_exporter
 
@@ -143,7 +144,7 @@
                         main_files.append(source)
 
         libraries = []
-        for lib in self.resources.libraries:
+        for lib in self.libraries:
             l, _ = splitext(basename(lib))
             if l[3:] not in EXCLUDED_LIBS:
                 libraries.append(l[3:])
@@ -194,3 +195,7 @@
         '''
 
         self.gen_file('simplicity/slsproj.tmpl', ctx, '%s.slsproj' % self.project_name)
+
+    @staticmethod
+    def clean(project_name):
+        remove('%s.slsproj' % project_name)