From 01962a80858f46edd6552a9ae53ea8f6830b1118 Mon Sep 17 00:00:00 2001 From: Javier Luraschi Date: Thu, 23 Jan 2025 08:53:09 -0800 Subject: [PATCH] [python] fix regression in ready() --- CHANGELOG.md | 4 ++++ python/hal9/iobind.py | 2 +- python/messages.json | 1 - python/messages.pkl | 1 - python/pyproject.toml | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 python/messages.json delete mode 100644 python/messages.pkl diff --git a/CHANGELOG.md b/CHANGELOG.md index aeddd5c0..a306db7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.8.5 + +- Fix regression in `ready()` function + ## 2.8.4 - Add `access` parameter to `save()` to share files diff --git a/python/hal9/iobind.py b/python/hal9/iobind.py index e1e133f4..5a4b6422 100644 --- a/python/hal9/iobind.py +++ b/python/hal9/iobind.py @@ -136,7 +136,7 @@ def save(name, contents = None, hidden = False, files = None, encoding = None, a Path(f"./{storage_path}/{name}.asset").write_text(asset_definition) def ready(): - with open(f"{storage_path}/.output", 'w') as file: + with open(f".storage/.output", 'w') as file: file.write("") def input(prompt = "", extract = False, messages = []): diff --git a/python/messages.json b/python/messages.json deleted file mode 100644 index 3cc762b5..00000000 --- a/python/messages.json +++ /dev/null @@ -1 +0,0 @@ -"" \ No newline at end of file diff --git a/python/messages.pkl b/python/messages.pkl deleted file mode 100644 index 9b6ff7ac..00000000 --- a/python/messages.pkl +++ /dev/null @@ -1 +0,0 @@ -€N. \ No newline at end of file diff --git a/python/pyproject.toml b/python/pyproject.toml index c239f50a..e27ca9c9 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hal9" -version = "2.8.4" +version = "2.8.5" description = "" authors = ["Javier Luraschi "] readme = "README.md"