title: Incude FreeCAD in system path for just one conda virtual environment
body: <p>I want to be able to import FreeCAD into my python scripts, but only in one conda virtual environment. Is there a way to do this without adding FreeCAD to the path at the beginning of each file? I am using Pop!_OS, which should behave like Ubuntu here.</p>
  
  <p>I already found that you can import FreeCAD, but the source I found did so by appending the FreeCAD library location at the beginning of the file: <a href="https://www.freecadweb.org/wiki/Embedding_FreeCAD" rel="nofollow noreferrer">https://www.freecadweb.org/wiki/Embedding_FreeCAD</a>. It looks like you could circumvent this problem by modifying your path variable, and I was able to do so on Windows in my workplace. I just want to do this only for a particular conda virtual environment.</p>
  
  <p>Ideally,</p>
  
  <pre class="lang-py prettyprint-override"><code>import FreeCAD
  </code></pre>
  
  <p>will work in a special virtual environment, but not in others.</p>
  
  <p>As mentioned, I got the import statement to work on Windows already by adding FreeCAD's directory to the PATH environment variable. It worked with the default python in command prompt, which should be the anaconda installation, so I think it works in all virtual environments. On Linux, though, I cannot import FreeCAD in python even when I use</p>
  
  <pre class="lang-sh prettyprint-override"><code>PATH=$PATH:/usr/lib/freecad-python3/lib/
  </code></pre>
  
  <p>which I got from "locate FreeCAD.so" . I get</p>
  
  <pre class="lang-py prettyprint-override"><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ModuleNotFoundError: No module named 'FreeCAD'
  </code></pre>
  
  <p>It would be really nice to be able to run the same code on both operating systems, and have the PATH modification confined to one virtual environment.</p>