OpenScad library path

12-23-2021
Put it in the .profile file and not in .bash_profile or .bashrc.

OpenScad works well if you can do something like this:
use ;
Cube(10,10,10);

The use clause refers to a file, which in my case is in the OpenScadsnippets folder. He finds it because the OPENSCADPATH environment variable is set correctly:
#OpenScadjes
export OPENSCADPATH="/media/marcel/Projects/Openscadjes/library:$OPENSCADPATH"

But where should you put that export line? In your home folder you have .bash_profile, .bashrc and also .profile. Answer: .profile is the right one! If you put it in there, OpenScad always works, regardless of how you start it (from the start menu or directly from an Appimage).

★ㄥinuメ★ TᎥƤ乙

View all 42 tips
or follow the
RSS-feed.
 
×
×