using egg-texture-cards

I wrote a small wrapper around egg-texture-cards to make it more gui friendly, but I am having an issue. I feed this command in:

C:\Panda3D-1.6.2\bin\egg-texture-cards.exe -o C:/Panda3D-1.6.2/bin/blah.egg C:/Panda3D-1.6.2/bin/100_2108.JPG C:/Panda3D-1.6.2/bin/100_2109.JPG C:/Panda3D-1.6.2/bin/100_2110.JPG

And I get this error

Unable to read image C:/Panda3D-1.6.2/bin/100_2108.JPG
Unable to read image C:/Panda3D-1.6.2/bin/100_2109.JPG
Unable to read image C:/Panda3D-1.6.2/bin/100_2110.JPG
Some textures not found; not generating egg file.

But if I strip out all of the paths:

egg-texture-cards.exe -o blah.egg 100_2108.JPG 100_2109.JPG 100_2110.JPG

Then we are golden.
Is there anything I can do to use full pathnames, so I don’t have to move the files into the same directory as the egg-texture-cards.exe before I use it?

Have you tried using Panda’s filename convention?

egg-texture-cards.exe -o /c/Panda3D-1.6.2/bin/blah.egg /c/Panda3D-1.6.2/bin/100_2108.JPG /c/Panda3D-1.6.2/bin/100_2109.JPG /c/Panda3D-1.6.2/bin/100_2110.JPG

David

Yep, that was it. Should have thought of it…
Thanks

Most command-line programs do accept either Panda-style or Windows-style filenames. This appears to be an exception, which is arguably a bug in egg-texture-cards. My apologies for that bug. :slight_smile:

David