<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">After looking to the code [1], it's this setting which is read:</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">"/Qgis/plugin-installer/allowExperimental"</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">It's really strange...<br><div><br></div><div>[1] <a href="https://github.com/qgis/QGIS/blob/master/python/pyplugin_installer/installer_data.py#L735" target="_blank">https://github.com/qgis/QGIS/blob/master/python/pyplugin_installer/installer_data.py#L735</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-11 15:37 GMT+02:00 Denis Rouzaud <span dir="ltr"><<a href="mailto:denis.rouzaud@gmail.com" target="_blank">denis.rouzaud@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Sorry, looking in the debugger shows:<br>
    <br>
    s.setValue("/Qgis/plugin-installer/allowExperimental", True)<br>
    <br>
    so the first slash was missing.<div><div class="h5"><br>
    <br>
    <div>On 11.09.2014 15:28, Denis Rouzaud
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      Hi Rémi,<br>
      <br>
      <div>On 11.09.2014 14:39, Rémi Bovard
        wrote:<br>
      </div>
      <blockquote type="cite">
        <div dir="ltr">Hi list,
          <div><br>
          </div>
          <div>I'm trying to allow experimental plugins via a Python
            script and it doesn't work.</div>
          <div><br>
          </div>
          <div>Here is the code:</div>
          <div><br>
          </div>
          <div>
            <div>from PyQt4.QtCore import QSettings</div>
            <div>s = QSettings()</div>
            <div>s.setValue("Qgis/plugin-installer/allowExperimental",
              True)</div>
          </div>
        </div>
      </blockquote>
      not sure, but try lowercase + first slash:<br>
      <br>
      s.setValue("/qgis/plugin-installer/allowExperimental", True)<br>
      <br>
      is this better?<br>
      <br>
      <blockquote type="cite">
        <div dir="ltr">
          <div><br>
          </div>
          <div>What am I doing wrong?</div>
          <div><br>
          </div>
          <div>Thanks in advance.</div>
          <div><br>
          </div>
          <div>Rémi</div>
        </div>
        <br>
        <fieldset></fieldset>
        <br>
        <pre>_______________________________________________
Qgis-developer mailing list
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div></div>