#3944 Fix the PYTHONPATH for the dev_worker_1 container
Merged 5 years ago by pingou. Opened 5 years ago by lenkaseg.
Unknown source fix_dev_pythonpath  into  master

file modified
+1 -1
@@ -33,7 +33,7 @@

        - ../lcl/attachments:/attachments:ro

        - ..:/code:z

      environment:

-       - PYTHONPATH=.

+       - PYTHONPATH=/code

        - PAGURE_CONFIG=/code/dev/openshift.cfg

    logcom:

      build:

When trying to create new project using API, with the create_readme=True
parameter, there was an ImportError: No module named pagure.lib, in
the pre-receive hook of the new project.

In dev_worker_1 container the PYTHONPATH was pointing to ..
The hooks were probably not being run from the workdir set in the
Dockerfile. Now it points to /code and the error is gone.

Commit 82e674e fixes this pull-request

Pull-Request has been merged by pingou

5 years ago