Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Accessing resources from another project

I'm thinking of organizing my code as follows:

  • Project A (private) has all the libraries and common python modules.
  • Projects B, C, D (public) have mostly notebooks that make use of python modules in (A)

I added the absolute path to project A modules in a local.pth file of project B:

~/.local/lib/python2.7/site-packages/local.pth

Also did chmod 755 (read and execute by everyone) on all resources in project A. Testing with python in a console (project B) shows that the path to project A is not added to sys.path. The same works fine when I'm in project A. Any idea how to proceed?

click to hide/show revision 2
retagged

Accessing resources from another project

I'm thinking of organizing my code as follows:

  • Project A (private) has all the libraries and common python modules.
  • Projects B, C, D (public) have mostly notebooks that make use of python modules in (A)

I added the absolute path to project A modules in a local.pth file of project B:

~/.local/lib/python2.7/site-packages/local.pth

Also did chmod 755 (read and execute by everyone) on all resources in project A. Testing with python in a console (project B) shows that the path to project A is not added to sys.path. The same works fine when I'm in project A. Any idea how to proceed?