I am new to Python. I am in a company where they built a large Python system. They use a proprietary system to manage paths when the system is running, but now I have been asked to create a stand-alone script that interacts with some of the code on their system. Unfortunately, my stand-alone script will not run under the path they use, so I need to figure out the paths myself.
So for example, I have this line:
from hark.tasks import REPLY_LINE
It is actually copied from some of their older code. In this case, the script may find hark, but hark has a file __init__.py, and that is where the problems begin. So I get the following:
meg/src/python2/hark/hark/__init__.py in <module>()
5 from flask import jsonify, render_template, request
6 import jinja2
----> 7 import logbook, logbook.compat
8
9 from healthhark.context import Ghost, g
The project they built actually includes a magazine 3 times. If I do this:
find . -name "*logbook*"
I see:
meg/zurge/opt/python2.7/lib/python2.7/site-packages/logbook
meg/zurge/opt/python2.7-hark/lib/python2.7/site-packages/logbook
meg/zurge/opt/python3.4/lib/python3.4/site-packages/logbook
, , , , , .
Python, , Pythonic , ?
, - pip install, .