Hi <div><br></div><div>I will try to modify the Sys.Path</div><div>The Form is in the same directory as the project though.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 28, 2012 at 8:12 AM, Tim Sutton <span dir="ltr"><<a href="mailto:lists@linfiniti.com" target="_blank">lists@linfiniti.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<div><br></div><div>You probably need to manipulate your sys.path to ensure that your form is visible to python at plugin start, or move your form into the same directory as your project file.</div>
<div><br></div><div>Regards</div><span class="HOEnZb"><font color="#888888">

<div><br></div><div>Tim</div></font></span><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Mon, Nov 26, 2012 at 9:02 PM, Justin Hubbard <span dir="ltr"><<a href="mailto:justin@pyrotechsoftware.com" target="_blank">justin@pyrotechsoftware.com</a>></span> wrote:<br>


</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">I am developing a plugin, which uses a custom feature form with custom logic.<div>The problem is that when I open the project (Automatic with the load of the plugin) and I try to open the feature form I get an import error that the module doesn't exist.</div>



<div><br></div><div>If I click the save project button, and then try to open the feature form it works correctly.</div><div>I have tried to trigger this save in the plugin code. The save works correctly, but unless I specifically click on the action, I get the same error.<br clear="all">



<div><br></div><div>Am I missing something?</div>-- <br><p><span style="font-family:verdana,geneva;font-size:x-small">Warm regards</span><br><strong><span style="font-family:verdana,geneva;font-size:x-small">Justin Hubbard</span></strong><br>



<br><strong><span style="font-family:verdana,geneva;font-size:x-small">--</span></strong><br></p><table border="0" cellspacing="1" cellpadding="0" style="background-color:rgb(0,51,102);width:250px;min-height:217px"><tbody><tr>



<td style="margin:0px;padding:1.5pt;font-family:arial,sans-serif;background-color:white"><table border="0" cellpadding="0" style="background-color:white;width:241px;min-height:207px"><tbody><tr><td colspan="2" style="margin:0px;padding:0.75pt">



<table border="0" cellspacing="0" cellpadding="0" style="width:347px;min-height:212px"><tbody><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"> </td>


<td style="margin:0px;padding:0in;min-height:10.5pt">
 <p dir="ltr" style="margin:0px;text-align:justify"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"> <p dir="ltr" style="margin:0px;text-align:justify"><span style="font-family:verdana,geneva"><strong><span style="font-size:10pt;color:red">Justin Hubbard</span></strong></span></p>



<p dir="ltr" style="margin:0px;text-align:justify"><span style="font-size:7.5pt;color:rgb(0,51,102)">Software Engineer and Support<br><br></span></p></td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">



<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Mobile:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">



<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  <a href="tel:%2B27%20%280%2979%20827%201657" value="+27798271657" target="_blank">+27 (0)79 827 1657</a></span></p></td></tr><tr style="min-height:10.5pt">


<td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">
<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Fax:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">



<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  <a href="tel:%2B27%20%280%2986%20540%206016" value="+27865406016" target="_blank">+27 (0)86 540 6016</a></span></p></td></tr><tr style="min-height:10.5pt">


<td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">
<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Email:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">



<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:navy">  <span style="color:blue"><span style="color:rgb(0,0,204)"><a title="Email Me" href="mailto:robert@plannermunicipalsoftware.co.za" target="_blank">justin@pyrotechsoftware.com</a></span></span></span></p>



</td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"><p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt">



<span style="font-size:7.5pt;color:rgb(0,51,102)">  Web Site:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:navy">  <span style="color:blue"><span style="color:rgb(0,0,204)"><a title="About Me" href="http://www.plannermunicipalsoftware.co.za/" target="_blank">www.pyrotechsoftware.co</a>m</span></span></span></p>



</td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table><br>
</div>
<br></div></div><div class="im">_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br></div></blockquote></div><div class="im"><br><br clear="all"><div><br></div>-- <br>Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)<br>==============================================<br>Please do not email me off-list with technical<br>


support questions. Using the lists will gain<br>more exposure for your issues and the knowledge<br>surrounding your issue will be shared with all.<br><br>Visit <a href="http://linfiniti.com" target="_blank">http://linfiniti.com</a> to find out about:<br>


 * QGIS programming and support services<br> * Mapserver and PostGIS based hosting plans<br> * FOSS Consulting Services<br>Skype: timlinux<br>Irc: timlinux on #qgis at <a href="http://freenode.net" target="_blank">freenode.net</a><br>
==============================================<br>


</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><p><span style="font-family:verdana,geneva;font-size:x-small">Warm regards</span><br><strong><span style="font-family:verdana,geneva;font-size:x-small">Justin Hubbard</span></strong><br>
<br><strong><span style="font-family:verdana,geneva;font-size:x-small">--</span></strong><br></p><table border="0" cellspacing="1" cellpadding="0" style="background-color:rgb(0,51,102);width:250px;height:217px"><tbody><tr>
<td style="margin:0px;padding:1.5pt;font-family:arial,sans-serif;background-color:white"><table border="0" cellpadding="0" style="background-color:white;width:241px;height:207px"><tbody><tr><td colspan="2" style="margin:0px;padding:0.75pt">
<table border="0" cellspacing="0" cellpadding="0" style="width:347px;height:212px"><tbody><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"> </td><td style="margin:0px;padding:0in;min-height:10.5pt">
 <p dir="ltr" style="margin:0px;text-align:justify"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"> <p dir="ltr" style="margin:0px;text-align:justify"><span style="font-family:verdana,geneva"><strong><span style="font-size:10pt;color:red">Justin Hubbard</span></strong></span></p>
<p dir="ltr" style="margin:0px;text-align:justify"><span style="font-size:7.5pt;color:rgb(0,51,102)">Software Engineer and Support<br><br></span></p></td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">
<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Mobile:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">
<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  +27 (0)79 827 1657</span></p></td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">
<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Fax:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">
<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  +27 (0)86 540 6016</span></p></td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">
<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Email:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">
<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:navy">  <span style="color:blue"><span style="color:rgb(0,0,204)"><a title="Email Me" href="mailto:robert@plannermunicipalsoftware.co.za" target="_blank">justin@pyrotechsoftware.com</a></span></span></span></p>
</td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"><p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt">
<span style="font-size:7.5pt;color:rgb(0,51,102)">  Web Site:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:navy">  <span style="color:blue"><span style="color:rgb(0,0,204)"><a title="About Me" href="http://www.plannermunicipalsoftware.co.za/" target="_blank">www.pyrotechsoftware.co</a>m</span></span></span></p>
</td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table><br>
</div>