<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    Yes, the environmental variables ton run a standalone script in
    python are set up and it works<br>
    I just want know how to run my personnal processing  algorithm, but
    I don't know how to manually add my alg provider in the alg provider
    registry<br>
    <br>
    qgis_process is an interesting way, but I prefer if possible calling
    it directly  in PyQgis because it's part of a wider app<br>
    <br>
    Thanks<br>
    <br>
    <br>
    Best regards<br>
    <div class="moz-signature">
      <style type="text/css">
<!--
a.type1 { color: #EE7F00; }
a.type1:hover { color: #EE7F00;}
-->
</style><br>
      <br>
    </div>
    <div class="moz-cite-prefix">Le 02/11/2020 à 18:15, > nagyrobi_r
      (par Internet) a écrit :<br>
    </div>
    <blockquote
      cite="mid:1197122384.1400649.1604337304297@mail.yahoo.com"
      type="cite">
      <div> Did you set up the environmental variables to run it as a
        standalone script in python?<br>
        Like in section 1.4.3?<br>
<a class="moz-txt-link-freetext" href="https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/intro.html#using-pyqgis-in-standalone-scripts">https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/intro.html#using-pyqgis-in-standalone-scripts</a><br>
      </div>
      <div class="yahoo_quoted" style="margin:10px 0px 0px
        0.8ex;border-left:1px solid #ccc;padding-left:1ex;">
        <div style="font-family:'Helvetica Neue', Helvetica, Arial,
          sans-serif;font-size:13px;color:#26282a;">
          <div> On Monday, November 2, 2020, 06:02:11 PM GMT+1, Etienne
            Trimaille <a class="moz-txt-link-rfc2396E" href="mailto:etienne.trimaille@gmail.com"><etienne.trimaille@gmail.com></a> wrote: </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>
            <div id="yiv4227917233">
              <div>
                <div dir="ltr">
                  <div>As you are using QGIS 3.14, I would suggest you
                    to use qgis_process if you can.</div>
                  <div>Do you really want to use PyQGIS?<br clear="none">
                  </div>
                  <div><br clear="none">
                  </div>
                  <div>But if you really need PyQGIS, maybe the path
                    where your script is located is not known to your
                    standalone script ?<br clear="none">
                  </div>
                </div>
                <br clear="none">
                <div class="yiv4227917233gmail_quote">
                  <div class="yiv4227917233gmail_attr" dir="ltr">Le lun.
                    2 nov. 2020 à 17:33,  a écrit :<br clear="none">
                  </div>
                  <blockquote class="yiv4227917233gmail_quote"
                    style="margin:0px 0px 0px 0.8ex;border-left:1px
                    solid rgb(204,204,204);padding-left:1ex;">
                    <div class="yiv4227917233yqt7346773165"
                      id="yiv4227917233yqt50142">
                      <div> Hello,<br clear="none">
                        <br clear="none">
                        I work with Qgis 3.14 in Windows 10<br
                          clear="none">
                        <br clear="none">
                        I try to call a processing algorithm from a
                        python stand alone app, <br clear="none">
                        I want to run the following script from the
                        custom Networks algorithm provider but I have
                        the message that the algorithm is not known<br
                          clear="none">
                        <br clear="none">
                        How to register the provider in the processing
                        registry to be able to call it?<br clear="none">
                        <br clear="none">
                        <br clear="none">
                            QgsApplication.setPrefixPath("C:/Program
                        Files/QGIS 3.14/apps/qgis", True)<br
                          clear="none">
                            qgs = QgsApplication([], False)<br
                          clear="none">
                        <br clear="none">
                            qgs.initQgis()<br clear="none">
                            import processing<br clear="none">
                            from processing.core.Processing import
                        Processing<br clear="none">
                            Processing.initialize()<br clear="none">
                        <br clear="none">
                        <br clear="none">
                        <br clear="none">
                           
                        processing.run("Networks:musliw_simple_matrix",
{'NODES':'G:/BD_DREAL/2020/script_modele_resmultimodal_light   /noeuds_light_hdf_be.gpkg','NUM':'num','START_POINT':'708675.425564,7063676.157556
[EPSG:2154]','END_POINT':'708675.425564,7063676.157556[EPSG:2154]','DEMAND':1,'DAY':1,'TIME':'09:00:00','DEPARTURE':1,'OUTPUT':'G:/BD_DREAL/2020/script_modele_resmultimodal_light/matrice.txt','WRITE_MODE':0})<br
                          clear="none">
                        <br clear="none">
                        Thanks<br clear="none">
                        <br clear="none">
                        Best regards<br>
                        <br clear="none">
                        <div>-- <br clear="none">
                          <br clear="none">
                          <br>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <blockquote
      cite="mid:1197122384.1400649.1604337304297@mail.yahoo.com"
      type="cite">
      <div class="yahoo_quoted" style="margin:10px 0px 0px
        0.8ex;border-left:1px solid #ccc;padding-left:1ex;">
        <div style="font-family:'Helvetica Neue', Helvetica, Arial,
          sans-serif;font-size:13px;color:#26282a;">
          <div>
            <div id="yiv4227917233">
              <div>
                <div class="yiv4227917233gmail_quote">
                  <blockquote class="yiv4227917233gmail_quote"
                    style="margin:0px 0px 0px 0.8ex;border-left:1px
                    solid rgb(204,204,204);padding-left:1ex;">_______________________________________________<br
                      clear="none">
                    QGIS-Developer mailing list<br clear="none">
                    <a moz-do-not-send="true" rel="nofollow"
                      shape="rect"
                      ymailto="mailto:QGIS-Developer@lists.osgeo.org"
                      target="_blank"
                      href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br
                      clear="none">
                    List info: <a moz-do-not-send="true" rel="nofollow"
                      shape="rect" target="_blank"
                      href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br
                      clear="none">
                    Unsubscribe: <a moz-do-not-send="true"
                      rel="nofollow" shape="rect" target="_blank"
                      href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote>
                </div>
              </div>
            </div>
            <div class="yqt7346773165" id="yqt29693">_______________________________________________<br
                clear="none">
              QGIS-Developer mailing list<br clear="none">
              <a moz-do-not-send="true" shape="rect"
                ymailto="mailto:QGIS-Developer@lists.osgeo.org"
                href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br
                clear="none">
              List info: <a moz-do-not-send="true" shape="rect"
                href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
                target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br
                clear="none">
              Unsubscribe: <a moz-do-not-send="true" shape="rect"
                href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
                target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>