conan-io / examples2

Conan 2.x examples
MIT License
87 stars 48 forks source link

Where is `examples\libraries\imgui\introduction\run_example.py` should be run from? #130

Closed FreePhoenix888 closed 5 months ago

FreePhoenix888 commented 6 months ago

Where is examples\libraries\imgui\introduction\run_example.py should be run from?

My Tries:

PS C:\Users\FreePhoenix\Documents\Programming\examples2\examples\libraries\imgui\introduction> python .\run_example.py
Traceback (most recent call last):
  File "C:\Users\FreePhoenix\Documents\Programming\examples2\examples\libraries\imgui\introduction\run_example.py", line 3, in <module>
    from test.examples_tools import run
ModuleNotFoundError: No module named 'test.examples_tools'
PS C:\Users\FreePhoenix\Documents\Programming\examples2> python .\examples\libraries\imgui\introduction\run_example.py
Traceback (most recent call last):
  File "C:\Users\FreePhoenix\Documents\Programming\examples2\examples\libraries\imgui\introduction\run_example.py", line 3, in <module>
    from test.examples_tools import run
ModuleNotFoundError: No module named 'test.examples_tools'
czoido commented 6 months ago

Hi @FreePhoenix888, Thanks for the question. run_example.py is not intended to be run by users, just for ci (sorry if that's confusing, I'll open an issue to clarify that). Please, if you want to know how to use the example you can follow the tutorial here: https://blog.conan.io/2019/06/26/An-introduction-to-the-Dear-ImGui-library.html That code is intended to be a companion to the blogpost and also to be tested in ci. Hope this helps!

czoido commented 6 months ago

I have opened this issue to clarify that in the repo: https://github.com/conan-io/examples2/issues/134 We'll consider this closed with that clarification, thanks!