31

I am developing a project in Python and I want to include some own modules which are not on the regular Python search path and I want to add them. However, I want to do this just for the Anaconda environment I am using during development and I would like them to remain there over time(i.e. when I restart the environment, I want the search path to have that folder).

Thanks!

Radu Szasz
  • 981
  • 1
  • 9
  • 22

1 Answers1

47

You can use

conda develop <directory>

This will write a conda.pth file to the environment's site-packages directory which will cause your directory to be added to the sys.path.

asmeurer
  • 86,894
  • 26
  • 169
  • 240
  • 17
    you have to have `conda-build` installed in the conda root to have access to conda develop. Just in case anyone is wondering, like I was, why conda develop would return an error stating there is no conda develop. – mnky9800n Aug 03 '17 at 09:07