Skip to main content
12 events
when toggle format what by license comment
Apr 7, 2018 at 20:47 comment added vklidu Output is the same as for echo $PATH in my answer (Note 1) -path to blender is there, I set permanent PATH to blender already. I just expected that alias and PATH is created for a reason - to be accesible for any new Shell. If you say alias is not visible for new shell created by Python, OK its enough to know for me :) thanks
Apr 7, 2018 at 20:23 comment added gandalf3 @vklidu Aliases only work in the shell they are defined in. Python will create a new shell (which knows nothing about other shell's aliases) and run "blender" there. If "blender" isn't found in the PATH environment variable, then it's "command not found". Environment variables are inherited from process to process, so if you set PATH in your shell and then run python (which then runs it's own shell in order to call "blender"), the PATH you set should be carried down the chain and also be set for python's subshell. Try running python -c 'import os;os.system("echo $PATH")' to test it.
Apr 7, 2018 at 20:18 comment added gandalf3 @vklidu It only uses that if a file exists at that location. If it doesn't, it falls back to just calling "inkscape", hoping it's in the PATH. Perhaps the reason for that being done was to workaround the same kind of situation you're running into with blender now..
Apr 7, 2018 at 20:16 comment added vklidu @gandalf3: thanks, works! There should be a note on wiki. It was a pain. Quite interesting is that Inkscape has written whole path in script, so if I would install app somewhere else, script would be broken again, right? Also I set alias for blender to be executable by word "blender" (and it works), so isnt this line 15 for that? - execute blender by word? So it should work witout full path, right?
Apr 7, 2018 at 18:50 comment added gandalf3 @vklidu Your file is different from mine; in your case it looks like you want line 15
Apr 7, 2018 at 13:07 comment added Tiles Blender needs to be installed. It does the job of slicing the iconsheet in the background. Under windows there is a place for the system variables. Google search for Path and environment variables in Windows. Both, Blender and Inkscape needs to have an entry in the path item. Normally this happens automatically at installing both software.
Apr 6, 2018 at 23:06 comment added vklidu In my "blender_icons_update.py" I don't think I can do that on lines 34,49. See pasteall.org/blend/index.php?id=49271 Re: cmake, yes installed. Via cmake I generated Xcode project and compile blender with Xcode as described on wiki.
Apr 5, 2018 at 1:38 comment added gandalf3 @vklidu I don't have a mac to test on, but I don't see anything obviously wrong with your PATH adjustment. You could try setting the path to blender directly in the icon script (see lines 34 and 49) and running it manually. Re: cmake, is cmake installed?
Apr 4, 2018 at 11:22 comment added vklidu OK, I put outputs as a more drastic changes in my Q. It's result of yesterday search. Seems like the understanding of the "PATH" is key. Thanks for patience. I can erase parts "PATH" and "BUILD" that are my messy tries. And I will keep only first part with questions if it will be solved in answer.
Oct 5, 2014 at 22:12 comment added gandalf3 @vklidu If it's still not working, could you post the output of the python script?
Oct 4, 2014 at 17:49 comment added gandalf3 @vklidu It generates .dat files from the png files using blender, then deletes the pngs. The system path bit means that running "blender" or "inkscape" at the CLI should start blender or inkscape, without the full path to the executables.
Oct 3, 2014 at 18:25 history answered gandalf3 CC BY-SA 3.0