ISEK icon indicating copy to clipboard operation
ISEK copied to clipboard

`isek example` list shows nothing

Open yqtian-se opened this issue 1 year ago • 3 comments

Here is what I got when running isek example list.

Available examples:

I think the problem is that when installing isek using pip3 install isek, the example folder is excluded.

Then when I invoke the example command, isek is trying to find the example folder, but fails.

https://github.com/isekOS/ISEK/blob/93a7e0ee7c204dfe46054678dcbf7dab689c91be/isek/cli.py#L156-L166

Any idea about how to address this issue? I may help if you have some suggestions.

yqtian-se avatar Jul 30 '25 15:07 yqtian-se

Same issue here, and I believe it is caused by the file path when wrapping this in a package:

Path(__file__).parent.parent

This may not return the correct path. So maybe it can be fixed by using something like:

Path(__file__).resolve().parent.parent 

Tested locally with python isek/cli.py example list, works okay

Chuan-Yang avatar Aug 06 '25 22:08 Chuan-Yang

Hi, Thank you for bringing this to our attention. @Moshiii Could you please take a look at this issue when you get a chance?

SparkssL avatar Aug 11 '25 03:08 SparkssL

I think this README should be updated. the new examples are in the examples folder

Moshiii avatar Aug 11 '25 06:08 Moshiii