pypdevsbbl.extra.fileutils.html 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title>pypdevsbbl.extra.fileutils module &#8212; Python(P)DEVS-BBL documentation</title>
  8. <link rel="stylesheet" href="_static/nature.css" type="text/css" />
  9. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  10. <link rel="stylesheet" type="text/css" href="_static/custom.css" />
  11. <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
  12. <script type="text/javascript" src="_static/jquery.js"></script>
  13. <script type="text/javascript" src="_static/underscore.js"></script>
  14. <script type="text/javascript" src="_static/doctools.js"></script>
  15. <script type="text/javascript" src="_static/language_data.js"></script>
  16. <script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
  17. <link rel="index" title="Index" href="genindex.html" />
  18. <link rel="search" title="Search" href="search.html" />
  19. <link rel="next" title="pypdevsbbl.extra.heap module" href="pypdevsbbl.extra.heap.html" />
  20. <link rel="prev" title="pypdevsbbl.extra.equations module" href="pypdevsbbl.extra.equations.html" />
  21. </head><body>
  22. <div class="related" role="navigation" aria-label="related navigation">
  23. <h3>Navigation</h3>
  24. <ul>
  25. <li class="right" style="margin-right: 10px">
  26. <a href="genindex.html" title="General Index"
  27. accesskey="I">index</a></li>
  28. <li class="right" >
  29. <a href="py-modindex.html" title="Python Module Index"
  30. >modules</a> |</li>
  31. <li class="right" >
  32. <a href="pypdevsbbl.extra.heap.html" title="pypdevsbbl.extra.heap module"
  33. accesskey="N">next</a> |</li>
  34. <li class="right" >
  35. <a href="pypdevsbbl.extra.equations.html" title="pypdevsbbl.extra.equations module"
  36. accesskey="P">previous</a> |</li>
  37. <li class="nav-item nav-item-0"><a href="index.html">Python(P)DEVS-BBL documentation</a> &#187;</li>
  38. <li class="nav-item nav-item-1"><a href="pypdevsbbl.html" >pypdevsbbl package</a> &#187;</li>
  39. <li class="nav-item nav-item-2"><a href="pypdevsbbl.extra.html" accesskey="U">pypdevsbbl.extra package</a> &#187;</li>
  40. </ul>
  41. </div>
  42. <div class="document">
  43. <div class="documentwrapper">
  44. <div class="bodywrapper">
  45. <div class="body" role="main">
  46. <div class="section" id="module-pypdevsbbl.extra.fileutils">
  47. <span id="pypdevsbbl-extra-fileutils-module"></span><h1>pypdevsbbl.extra.fileutils module<a class="headerlink" href="#module-pypdevsbbl.extra.fileutils" title="Permalink to this headline">¶</a></h1>
  48. <p>This file is a simple helperfile to allow a valid binding of files and folders.</p>
  49. <p>It has a set of functions that will always point towards the correct directory.
  50. This was created because the linking for the dependencies folder was not as
  51. straightforward as required.</p>
  52. <dl class="function">
  53. <dt id="pypdevsbbl.extra.fileutils.pypdevsbbl">
  54. <code class="descclassname">pypdevsbbl.extra.fileutils.</code><code class="descname">pypdevsbbl</code><span class="sig-paren">(</span><em>*paths</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/fileutils.html#pypdevsbbl"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.fileutils.pypdevsbbl" title="Permalink to this definition">¶</a></dt>
  55. <dd><p>Gets the absolute path of the <code class="docutils literal notranslate"><span class="pre">pypdevsbbl</span></code> directory.</p>
  56. <table class="docutils field-list" frame="void" rules="none">
  57. <col class="field-name" />
  58. <col class="field-body" />
  59. <tbody valign="top">
  60. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>*paths</strong> – Unpacked list of paths to join.</td>
  61. </tr>
  62. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The absolute path of the code directory followed by the paths.</td>
  63. </tr>
  64. </tbody>
  65. </table>
  66. </dd></dl>
  67. <dl class="function">
  68. <dt id="pypdevsbbl.extra.fileutils.src">
  69. <code class="descclassname">pypdevsbbl.extra.fileutils.</code><code class="descname">src</code><span class="sig-paren">(</span><em>*paths</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/fileutils.html#src"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.fileutils.src" title="Permalink to this definition">¶</a></dt>
  70. <dd><p>Gets the absolute path of the code source directory.</p>
  71. <table class="docutils field-list" frame="void" rules="none">
  72. <col class="field-name" />
  73. <col class="field-body" />
  74. <tbody valign="top">
  75. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>*paths</strong> – Unpacked list of paths to join.</td>
  76. </tr>
  77. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The absolute path of the code directory followed by the paths.</td>
  78. </tr>
  79. </tbody>
  80. </table>
  81. </dd></dl>
  82. <dl class="function">
  83. <dt id="pypdevsbbl.extra.fileutils.dependencies">
  84. <code class="descclassname">pypdevsbbl.extra.fileutils.</code><code class="descname">dependencies</code><span class="sig-paren">(</span><em>*paths</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/fileutils.html#dependencies"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.fileutils.dependencies" title="Permalink to this definition">¶</a></dt>
  85. <dd><p>Gets the absolute path of the <code class="docutils literal notranslate"><span class="pre">dependencies</span></code> directory.</p>
  86. <table class="docutils field-list" frame="void" rules="none">
  87. <col class="field-name" />
  88. <col class="field-body" />
  89. <tbody valign="top">
  90. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>*paths</strong> – Unpacked list of paths to join.</td>
  91. </tr>
  92. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The absolute path of the dependencies directory followed by the paths.</td>
  93. </tr>
  94. </tbody>
  95. </table>
  96. </dd></dl>
  97. <dl class="function">
  98. <dt id="pypdevsbbl.extra.fileutils.test">
  99. <code class="descclassname">pypdevsbbl.extra.fileutils.</code><code class="descname">test</code><span class="sig-paren">(</span><em>*paths</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra/fileutils.html#test"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.fileutils.test" title="Permalink to this definition">¶</a></dt>
  100. <dd><p>Gets the absolute path of the <code class="docutils literal notranslate"><span class="pre">test</span></code> directory.</p>
  101. <table class="docutils field-list" frame="void" rules="none">
  102. <col class="field-name" />
  103. <col class="field-body" />
  104. <tbody valign="top">
  105. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>*paths</strong> – Unpacked list of paths to join.</td>
  106. </tr>
  107. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The absolute path of the test directory followed by the paths.</td>
  108. </tr>
  109. </tbody>
  110. </table>
  111. </dd></dl>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  117. <div class="sphinxsidebarwrapper">
  118. <h4>Previous topic</h4>
  119. <p class="topless"><a href="pypdevsbbl.extra.equations.html"
  120. title="previous chapter">pypdevsbbl.extra.equations module</a></p>
  121. <h4>Next topic</h4>
  122. <p class="topless"><a href="pypdevsbbl.extra.heap.html"
  123. title="next chapter">pypdevsbbl.extra.heap module</a></p>
  124. <div id="searchbox" style="display: none" role="search">
  125. <h3>Quick search</h3>
  126. <div class="searchformwrapper">
  127. <form class="search" action="search.html" method="get">
  128. <input type="text" name="q" />
  129. <input type="submit" value="Go" />
  130. <input type="hidden" name="check_keywords" value="yes" />
  131. <input type="hidden" name="area" value="default" />
  132. </form>
  133. </div>
  134. </div>
  135. <script type="text/javascript">$('#searchbox').show(0);</script>
  136. </div>
  137. </div>
  138. <div class="clearer"></div>
  139. </div>
  140. <div class="related" role="navigation" aria-label="related navigation">
  141. <h3>Navigation</h3>
  142. <ul>
  143. <li class="right" style="margin-right: 10px">
  144. <a href="genindex.html" title="General Index"
  145. >index</a></li>
  146. <li class="right" >
  147. <a href="py-modindex.html" title="Python Module Index"
  148. >modules</a> |</li>
  149. <li class="right" >
  150. <a href="pypdevsbbl.extra.heap.html" title="pypdevsbbl.extra.heap module"
  151. >next</a> |</li>
  152. <li class="right" >
  153. <a href="pypdevsbbl.extra.equations.html" title="pypdevsbbl.extra.equations module"
  154. >previous</a> |</li>
  155. <li class="nav-item nav-item-0"><a href="index.html">Python(P)DEVS-BBL documentation</a> &#187;</li>
  156. <li class="nav-item nav-item-1"><a href="pypdevsbbl.html" >pypdevsbbl package</a> &#187;</li>
  157. <li class="nav-item nav-item-2"><a href="pypdevsbbl.extra.html" >pypdevsbbl.extra package</a> &#187;</li>
  158. </ul>
  159. </div>
  160. <div class="footer" role="contentinfo">
  161. &#169; Copyright 2020, Randy Paredis.
  162. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.5.
  163. </div>
  164. </body>
  165. </html>