1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" /> 5 <title>Creating Applications: Create a Directory</title> 6 <meta name="generator" 7 content="amaya 8.1a, see http://www.w3.org/Amaya/" /> 8 <link href="styles.css" rel="stylesheet" type="text/css" /> 9 </head> 10 <body> 11 <h1>Creating Applications: Create 12 a Directory</h1> 13 <p>The recommended directory 14 structure of an XSLForms application is as 15 follows:</p> 16 <table style="text-align: left; width: 80%;" align="center" border="0" 17 cellpadding="5" cellspacing="0" width="60%"> 18 <tbody> 19 <tr> 20 <td width="60%"></td> 21 <th style="text-align: left;" colspan="2" width="40%">Example 22 Directory 23 Structure<br /> 24 </th> 25 </tr> 26 <tr> 27 <th style="text-align: right;">A 28 top-level directory corresponding to a Python package</th> 29 <td 30 style="background-color: rgb(204, 204, 255); border-top-style: solid; border-left-style: solid; border-right-style: solid; border-right-width: 1px; border-left-width: 1px; border-top-width: 1px;" 31 align="undefined" valign="undefined"><code><span 32 style="font-weight: bold;">VerySimple</span><br /> 33 __init__.py</code></td> 34 <td></td> 35 </tr> 36 <tr> 37 <th style="text-align: right;">A subdirectory 38 containing non-code resources for the 39 application</th> 40 <td 41 style="background-color: rgb(204, 204, 255); border-left-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px;"><br /> 42 </td> 43 <td><span class="subdirectory"><code><span 44 style="font-weight: bold;">Resources</span><br /> 45 ...</code></span></td> 46 </tr> 47 </tbody> 48 </table> 49 <p>For the above example, the 50 directory structure would be created using UNIX-style commands 51 as follows:</p> 52 <pre>mkdir VerySimple<br />mkdir VerySimple/Resources<br />touch VerySimple/__init__.py</pre> 53 <p>It is in the <code>Resources</code> 54 subdirectory that we will save 55 our template files when <a href="design.html">designing</a> 56 them as 57 part of the next activity in the application development <a 58 href="overview.html">process</a>.</p> 59 </body> 60 </html>