creating a tmp file in python
<p>I have this function that references the path of a file:</p>

<pre><code>some_obj.file_name(FILE_PATH)
</code></pre>

<p>where FILE_PATH is a string of the path of a file, i.e. 'H:/path/FILE_NAME.ext'</p>

<p>I want to create a file FILE_NAME.ext inside my python script with the content of a string:</p>

<pre><code>some_string = 'this is some content'
</code></pre>

<p>How to go about this? The python script will be placed inside a linux box. I think I have to use </p>

<pre><code>import tempfile
import os
import sys
os.getcwd()
</code></pre>

<p>or something along those lines. Thanks!</p>
