Commits

Michał Górny  committed 17f7309

Bootloaders: store open file path.

  • Participants
  • Parent commits 1267c08

Comments (0)

Files changed (1)

File ecleankernel/bootloader/lilo.py

 		self._debug = debug
 		self._kernel_re = re.compile(self.kernel_re,
 				re.MULTILINE | re.IGNORECASE)
+		self.path = path or self.def_path
 
-		with open(path or self.def_path) as f:
+		with open(self.path) as f:
 			debug.print('%s found' % (path or self.def_path))
 			self._content = f.read()