PageRenderTime 21ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/2.0/generated/cf.TEMPDIR.html

https://bitbucket.org/cfpython/cfpython.bitbucket.org
HTML | 202 lines | 158 code | 14 blank | 30 comment | 0 complexity | 952e8f8a511cad249c71ec776d02b939 MD5 | raw file
  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="Content-Type" content="text/html; charset=utf-8" />
  6. <title>cf.TEMPDIR &#8212; Documentation</title>
  7. <link rel="stylesheet" href="../_static/classic.css" type="text/css" />
  8. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '../',
  12. VERSION: '2.0',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true,
  16. SOURCELINK_SUFFIX: '.txt'
  17. };
  18. </script>
  19. <script type="text/javascript" src="../_static/jquery.js"></script>
  20. <script type="text/javascript" src="../_static/underscore.js"></script>
  21. <script type="text/javascript" src="../_static/doctools.js"></script>
  22. <script type="text/javascript" src="../_static/copybutton.js"></script>
  23. <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
  24. <link rel="index" title="Index" href="../genindex.html" />
  25. <link rel="search" title="Search" href="../search.html" />
  26. <link rel="next" title="cf.abspath" href="cf.abspath.html" />
  27. <link rel="prev" title="cf.RTOL" href="cf.RTOL.html" />
  28. </head>
  29. <body role="document">
  30. <div class="related" role="navigation" aria-label="related navigation">
  31. <h3>Navigation</h3>
  32. <ul>
  33. <li class="right" style="margin-right: 10px">
  34. <a href="../genindex.html" title="General Index"
  35. accesskey="I">index</a></li>
  36. <li class="right" >
  37. <a href="cf.abspath.html" title="cf.abspath"
  38. accesskey="N">next</a> |</li>
  39. <li class="right" >
  40. <a href="cf.RTOL.html" title="cf.RTOL"
  41. accesskey="P">previous</a> |</li>
  42. <li><a target="_blank" href="../../archive.html">Archive</a> &laquo;</li>
  43. <li><a target="_blank" href="http://cfpython.bitbucket.io">cf-python 2.0</a> &raquo;</li>
  44. <!--
  45. <li><a target="_blank" href="http://cfpython.bitbucket.io">cf-python</a> &raquo;</li>
  46. <li><select onchange="location = this.options[this.selectedIndex].value;">
  47. <option value="../../1.0/index.html">1.0
  48. <option value="../../0.9.9/index.html">0.9.9
  49. <option value="../../0.9.8.3/index.html">0.9.8.3
  50. <option value="../../archive.html">Archive
  51. </select>
  52. </li>
  53. -->
  54. <li class="nav-item nav-item-0"><a href="../index.html">Documentation</a> &#187;</li>
  55. <li class="nav-item nav-item-1"><a href="../reference.html" >Reference manual</a> &#187;</li>
  56. <li class="nav-item nav-item-2"><a href="../function.html" accesskey="U">Functions of the <code class="docutils literal"><span class="pre">cf</span></code> module</a> &#187;</li>
  57. </ul>
  58. </div>
  59. <div class="document">
  60. <div class="documentwrapper">
  61. <div class="bodywrapper">
  62. <div class="body" role="main">
  63. <div class="section" id="cf-tempdir">
  64. <h1>cf.TEMPDIR<a class="headerlink" href="#cf-tempdir" title="Permalink to this headline">Âś</a></h1>
  65. <dl class="function">
  66. <dt id="cf.TEMPDIR">
  67. <code class="descclassname">cf.</code><code class="descname">TEMPDIR</code><span class="sig-paren">(</span><em>*arg</em><span class="sig-paren">)</span><a class="reference external" href="https://bitbucket.org/cfpython/cf-python/src/v2.0/cf/functions.py#functions.py-310"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cf.TEMPDIR" title="Permalink to this definition">Âś</a></dt>
  68. <dd><p>The directory for internally generated temporary files.</p>
  69. <p>When setting the directory, it is created if the specified path does
  70. not exist.</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"><dl class="first docutils">
  76. <dt>arg</dt>
  77. <span class="classifier-delimiter">:</span> <span class="classifier">str, optional</span><dd><p class="first">The new directory for temporary files. Tilde expansion (an
  78. initial component of <code class="docutils literal"><span class="pre">~</span></code> or <code class="docutils literal"><span class="pre">~user</span></code> is replaced by that
  79. <em>user</em>&#8216;s home directory) and environment variable expansion
  80. (substrings of the form <code class="docutils literal"><span class="pre">$name</span></code> or <code class="docutils literal"><span class="pre">${name}</span></code> are replaced
  81. by the value of environment variable <em>name</em>) are applied to
  82. the new directory name.</p>
  83. <p class="last">The default is to not change the directory.</p>
  84. </dd>
  85. </dl>
  86. </td>
  87. </tr>
  88. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><dl class="first docutils">
  89. <dt>out</dt>
  90. <span class="classifier-delimiter">:</span> <span class="classifier">str</span><dd><p class="first last">The directory prior to the change, or the current directory if
  91. no new value was specified.</p>
  92. </dd>
  93. </dl>
  94. </td>
  95. </tr>
  96. <tr class="field-odd field"><th class="field-name">Examples:</th><td class="field-body"></td>
  97. </tr>
  98. </tbody>
  99. </table>
  100. <div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">cf</span><span class="o">.</span><span class="n">TEMPDIR</span><span class="p">()</span>
  101. <span class="go">&#39;/tmp&#39;</span>
  102. <span class="gp">&gt;&gt;&gt; </span><span class="n">old</span> <span class="o">=</span> <span class="n">cf</span><span class="o">.</span><span class="n">TEMPDIR</span><span class="p">(</span><span class="s1">&#39;/home/me/tmp&#39;</span><span class="p">)</span>
  103. <span class="gp">&gt;&gt;&gt; </span><span class="n">cf</span><span class="o">.</span><span class="n">TEMPDIR</span><span class="p">(</span><span class="n">old</span><span class="p">)</span>
  104. <span class="go">&#39;/home/me/tmp&#39;</span>
  105. <span class="gp">&gt;&gt;&gt; </span><span class="n">cf</span><span class="o">.</span><span class="n">TEMPDIR</span><span class="p">()</span>
  106. <span class="go">&#39;/tmp&#39;</span>
  107. </pre></div>
  108. </div>
  109. </dd></dl>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  115. <div class="sphinxsidebarwrapper">
  116. <h4>Previous topic</h4>
  117. <p class="topless"><a href="cf.RTOL.html"
  118. title="previous chapter">cf.RTOL</a></p>
  119. <h4>Next topic</h4>
  120. <p class="topless"><a href="cf.abspath.html"
  121. title="next chapter">cf.abspath</a></p>
  122. <div role="note" aria-label="source link">
  123. <h3>This Page</h3>
  124. <ul class="this-page-menu">
  125. <li><a href="../_sources/generated/cf.TEMPDIR.rst.txt"
  126. rel="nofollow">Show Source</a></li>
  127. </ul>
  128. </div>
  129. <div id="searchbox" style="display: none" role="search">
  130. <h3>Quick search</h3>
  131. <form class="search" action="../search.html" method="get">
  132. <div><input type="text" name="q" /></div>
  133. <div><input type="submit" value="Go" /></div>
  134. <input type="hidden" name="check_keywords" value="yes" />
  135. <input type="hidden" name="area" value="default" />
  136. </form>
  137. </div>
  138. <script type="text/javascript">$('#searchbox').show(0);</script>
  139. </div>
  140. </div>
  141. <div class="clearer"></div>
  142. </div>
  143. <div class="related" role="navigation" aria-label="related navigation">
  144. <h3>Navigation</h3>
  145. <ul>
  146. <li class="right" style="margin-right: 10px">
  147. <a href="../genindex.html" title="General Index"
  148. >index</a></li>
  149. <li class="right" >
  150. <a href="cf.abspath.html" title="cf.abspath"
  151. >next</a> |</li>
  152. <li class="right" >
  153. <a href="cf.RTOL.html" title="cf.RTOL"
  154. >previous</a> |</li>
  155. <li><a target="_blank" href="../../archive.html">Archive</a> &laquo;</li>
  156. <li><a target="_blank" href="http://cfpython.bitbucket.io">cf-python 2.0</a> &raquo;</li>
  157. <!--
  158. <li><a target="_blank" href="http://cfpython.bitbucket.io">cf-python</a> &raquo;</li>
  159. <li><select onchange="location = this.options[this.selectedIndex].value;">
  160. <option value="../../1.0/index.html">1.0
  161. <option value="../../0.9.9/index.html">0.9.9
  162. <option value="../../0.9.8.3/index.html">0.9.8.3
  163. <option value="../../archive.html">Archive
  164. </select>
  165. </li>
  166. -->
  167. <li class="nav-item nav-item-0"><a href="../index.html">Documentation</a> &#187;</li>
  168. <li class="nav-item nav-item-1"><a href="../reference.html" >Reference manual</a> &#187;</li>
  169. <li class="nav-item nav-item-2"><a href="../function.html" >Functions of the <code class="docutils literal"><span class="pre">cf</span></code> module</a> &#187;</li>
  170. </ul>
  171. </div>
  172. <div class="footer" role="contentinfo">
  173. &#169; Copyright 2016, David Hassell.
  174. Last updated on Jul 07, 2017.
  175. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.5.1.
  176. </div>
  177. </body>
  178. </html>