Skip to content

Commit

Permalink
fix: self vars undeclared during FM init
Browse files Browse the repository at this point in the history
  • Loading branch information
gcushen committed Aug 13, 2020
1 parent d8a674a commit d3ffc0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion academic/editFM.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ def __init__(self, base_path: Path, delim: str = "---"):
if delim != "---":
raise NotImplementedError("Currently, YAML is the only supported front-matter format.")
self.delim = delim
self.fm = []
self.content = []
self.path = ""

def load(self, file: Path):
self.fm = []
self.content = []

self.path = self.base_path / file

file = open(self.path, "r").readlines()
Expand Down

0 comments on commit d3ffc0e

Please sign in to comment.