From 674c842b163aa1fdd212ae7d89bae1532df1b173 Mon Sep 17 00:00:00 2001 From: Wolfgang Fahl Date: Wed, 19 Oct 2022 12:59:27 +0200 Subject: [PATCH] fixes #567 regression --- jpcore/demostarter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jpcore/demostarter.py b/jpcore/demostarter.py index 5d0e09da..aa7bd370 100644 --- a/jpcore/demostarter.py +++ b/jpcore/demostarter.py @@ -32,9 +32,9 @@ def __init__(self, base_path:str=None,mode: str = None, debug: bool = False): self.mode = mode self.script_dir = os.path.dirname(__file__) if base_path is None: - base_path=self.script_dir + base_path=os.path.dirname(self.script_dir) self.justpy_dir = f"{base_path}/examples" - self.example_json_file=f"{os.path.dirname(base_path)}/tutorial/examples.json" + self.example_json_file=f"{base_path}/tutorial/examples.json" if self.debug: print(f"collecting examples from {self.justpy_dir}") pymodule_files = find_files(self.justpy_dir, ".py")