Well, I also tried<div><br></div><div><br></div><div>require &quot;/absolute/path/to/myfile&quot;<br></div><div><br></div><div><br></div><div>and this worked, also... do note that there is no &#39;.lua&#39; at the end of the path/file name</div>
<div><br></div><div>Mike</div><div><br><br><div class="gmail_quote">On Wed, May 21, 2008 at 12:28 PM, Mike McGonagle &lt;<a href="mailto:mjmogo@gmail.com">mjmogo@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>&gt; &gt; self:dofile(&quot;myscript.lua&quot;).</div></blockquote></div></div></blockquote><div><br></div><div>I tried this as the following:</div><div><br></div><div>dofile(&quot;/absolute/path/to/myfile.lua&quot;)</div>

<div><br></div><div>and this works...</div><div class="Ih2E3d"><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>package.path = &quot;/my/pdlua/files/?.lua;&quot; .. package.path<br></div></blockquote><div></div></div></div></blockquote><div><br></div></div><div>I also tried this as follows</div><div><br></div><div>package.path = &quot;/absolute/path/to/?.lua;&quot; .. package.path</div>

<div>require &quot;myfile.lua&quot;</div><div><br></div><div>and this works...</div><div>&nbsp;</div><div>Thanks for your help.</div><div><br></div><font color="#888888"><div>Mike</div><div><br></div><div><br></div></font></div>
<div><div></div><div class="Wj3C7c">-- <br>Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal.<br>
—Yehudi Menuhin (1916–1999), musician
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal.<br>—Yehudi Menuhin (1916–1999), musician
</div>