From f9eae46db3df0618712915dd919c0e2f1a473397 Mon Sep 17 00:00:00 2001 From: Tiago Montes Date: Thu, 22 Jul 2021 10:15:32 +0100 Subject: [PATCH] Bring in actual 1.5.0 changes: bundled file + displaying it. --- src/puppy/__main__.py | 4 ++++ src/puppy/hello.txt | 1 + 2 files changed, 5 insertions(+) create mode 100644 src/puppy/hello.txt diff --git a/src/puppy/__main__.py b/src/puppy/__main__.py index de7d9df..af336d0 100644 --- a/src/puppy/__main__.py +++ b/src/puppy/__main__.py @@ -247,6 +247,10 @@ def main(): window = _create_window() log_lines = _add_widgets(window) + hello_txt_path = ilr.files(__package__) / 'hello.txt' + with open(hello_txt_path, 'rt') as hello_file: + log_lines(hello_file.readlines()) + log_lines([ 'os.getcwd():', f' {os.getcwd()!r}', diff --git a/src/puppy/hello.txt b/src/puppy/hello.txt new file mode 100644 index 0000000..495cc9f --- /dev/null +++ b/src/puppy/hello.txt @@ -0,0 +1 @@ +Hello there!