Skip to content

Commit cfa32c0

Browse files
rename program to package
1 parent 13311d5 commit cfa32c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fancylog/fancylog.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class LoggingHeader:
126126
def __init__(
127127
self,
128128
file,
129-
program,
129+
package,
130130
variable_objects,
131131
output_dir,
132132
write_header=True,
@@ -139,13 +139,13 @@ def __init__(
139139
140140
See start_logging() for parameters.
141141
"""
142-
self.program = program
142+
self.package = package
143143

144144
with open(file, "w", encoding="utf-8") as self.file:
145145
if write_header:
146146
self.write_log_header(output_dir, log_header)
147147
if write_git:
148-
self.write_git_info(self.program.__name__)
148+
self.write_git_info(self.package.__name__)
149149
if write_cli_args:
150150
self.write_command_line_arguments()
151151
if write_variables and variable_objects:
@@ -274,7 +274,7 @@ def write_log_header(self, output_dir, log_header):
274274
self.file.write("Output directory: " + output_dir + "\n")
275275
self.file.write("Current directory: " + os.getcwd() + "\n")
276276
with contextlib.suppress(AttributeError):
277-
self.file.write(f"Version: {self.program.__version__}")
277+
self.file.write(f"Version: {self.package.__version__}")
278278

279279
def write_separated_section_header(
280280
self,

0 commit comments

Comments
 (0)