Commits

Crispin Wellington committed cc06bab

load requirements in constructor

  • Participants
  • Parent commits 4ad66a9
  • Branches virtualenv-caching

Comments (0)

Files changed (1)

parcel/requirements.py

     but understands nested requirements files somewhat and can hash the requirements contents
     """
     
-    def __init__(self):
+    def __init__(self, requirements=None):
         self.files = {}
+        if requirements is not None:
+            self.load(requirements)
 
     def load(self, file="requirements.txt"):
         """Read in all the requirements files."""
             sha.update(self.files[filename])
 
         return sha.hexdigest()
-
-                     
-
-
-