mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 16:01:32 +00:00
Make property setup stuff in FileManager.__init__() more readable
This commit is contained in:
parent
4b8b71d967
commit
0ef502a680
@ -10,10 +10,8 @@ log = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class FileManager:
|
class FileManager:
|
||||||
def __init__(self, working_directory, selected_file=None, exclude=()):
|
def __init__(self, working_directory, selected_file=None, exclude=()):
|
||||||
self._exclude = None
|
self._exclude, self.exclude = None, exclude
|
||||||
self.exclude = exclude
|
self._workdir, self.workdir = None, working_directory
|
||||||
self._workdir = None
|
|
||||||
self.workdir = working_directory
|
|
||||||
self.filename = selected_file or self.files[0]
|
self.filename = selected_file or self.files[0]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user