From 9c5c7af7abe9e444210ac86b903eee775fc76a84 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 8 Aug 2025 15:17:43 +0200 Subject: Small fixes --- .gitignore | 5 +++++ python/examples/move.py | 5 +++-- python/examples/solve.py | 4 ++-- python/examples/variations.py | 4 ++-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 81bb673..3e5bc85 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ utils/.DS_Store perf.data perf.data.old run +run.exe debugrun shell/lasttest.out shell/lasttest.err @@ -18,7 +19,9 @@ test/.DS_Store test/run test/run.DSYM runtest +runtest.exe runcpp +runcpp.exe runtest.js runtest.wasm web/http/nissy_web_module.* @@ -34,3 +37,5 @@ tools/results *.o *.so *.s +*.pyd +*.dll diff --git a/python/examples/move.py b/python/examples/move.py index 3cdd606..9c7a756 100644 --- a/python/examples/move.py +++ b/python/examples/move.py @@ -1,8 +1,9 @@ # Small example of nissy_python_module usage # See the solve.py example for more details on how this works -from sys import path -path.append("./") +import os, sys + +sys.path.append(os.getcwd()) import nissy_python_module as nissy cube = nissy.applymoves(nissy.solved_cube, "R' U' F"); diff --git a/python/examples/solve.py b/python/examples/solve.py index a60c432..e3752fe 100644 --- a/python/examples/solve.py +++ b/python/examples/solve.py @@ -4,8 +4,8 @@ # folder containing nissy_python_module.so # Append the main folder to the python path so we can load the module -from sys import path -path.append("./") +import sys, os +sys.path.append(os.getcwd()) # Import with a nicer name import nissy_python_module as nissy diff --git a/python/examples/variations.py b/python/examples/variations.py index 1b85d32..1a9d5bb 100644 --- a/python/examples/variations.py +++ b/python/examples/variations.py @@ -1,8 +1,8 @@ # Small example of nissy_python_module usage # See the solve.py example for more details on how this works -from sys import path -path.append("./") +import sys, os +sys.path.append(os.getcwd()) import nissy_python_module as nissy moves = "R U' Bw2 M D' x' F B(E2 F D B' Lw2 U2 U' S2 B)" -- cgit v1.3