From 4544e08997a7af6a8defa47efae1e9ba5c2c30f6 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 11 Aug 2025 12:05:08 +0200 Subject: Simplified name of Python module --- python/examples/solve.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'python/examples/solve.py') diff --git a/python/examples/solve.py b/python/examples/solve.py index e3752fe..d77dd74 100644 --- a/python/examples/solve.py +++ b/python/examples/solve.py @@ -1,14 +1,15 @@ -# Small example of nissy_python_module usage +# Small example of nissy Python module usage -# Compile the python module with "make python", then run this from the main -# folder containing nissy_python_module.so +# Run "./build python", then run this from either the top-level directory +# of the nissy-core repo or from the python subdirectory. -# Append the main folder to the python path so we can load the module +# Append the directories to the python path so we can load the module import sys, os sys.path.append(os.getcwd()) +sys.path.append(os.getcwd() + os.path.sep + "python") # Import with a nicer name -import nissy_python_module as nissy +import nissy # Choose the solver you prefer solver = "h48h0k4" -- cgit v1.3