Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Low
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Release 1.7.0, Sprint 2011-14, Release 1.6.2
-
Component/s: iOS
-
Labels:
Description
{html}<div><p><strong>Problem</strong></p>
<p>When you build a module from Titanium.py the build.py file that
is created is not finding the LICENSE file.</p>
<p><strong>Error</strong></p>
<pre>
<code>Traceback (most recent call last):
File "/mymodule/build.py", line 187, in <module>
validate_license()
File "/mymodule/build.py", line 99, in validate_license
c = open('LICENSE').read()
IOError: [Errno 2] No such file or directory: 'LICENSE'</code>
</pre>
<p><strong>Suggested Fix</strong></p>
<p>Modify lines 99-100 to:<br></p>
<pre>
<code> path = os.path.join(cwd,'LICENSE')
x = open(path)
c = x.read()</code>
</pre>
<p><strong>Ticket Reference</strong></p>
<p><a href=
"http://developer.appcelerator.com/helpdesk/view/76398">http://developer.appcelerator.com/helpdesk/view/76398</a></p></div>{html}
<p>When you build a module from Titanium.py the build.py file that
is created is not finding the LICENSE file.</p>
<p><strong>Error</strong></p>
<pre>
<code>Traceback (most recent call last):
File "/mymodule/build.py", line 187, in <module>
validate_license()
File "/mymodule/build.py", line 99, in validate_license
c = open('LICENSE').read()
IOError: [Errno 2] No such file or directory: 'LICENSE'</code>
</pre>
<p><strong>Suggested Fix</strong></p>
<p>Modify lines 99-100 to:<br></p>
<pre>
<code> path = os.path.join(cwd,'LICENSE')
x = open(path)
c = x.read()</code>
</pre>
<p><strong>Ticket Reference</strong></p>
<p><a href=
"http://developer.appcelerator.com/helpdesk/view/76398">http://developer.appcelerator.com/helpdesk/view/76398</a></p></div>{html}