how to open a fits file in python from a different path
<p>I have downloaded a fits file which is saved in the default downloads folder. But now I want to open it in python.I tried:</p>

<pre><code>&gt;&gt;&gt; from astropy.io import fits
&gt;&gt;&gt; hdulist=fits.open('MOS_033.Tb.fits')
</code></pre>

<p>But that leads to an IOError:</p>

<pre><code>IOError: [Errno 2] No such file or directory: 'MOS_033.Tb.fits'
</code></pre>

<p>What shall I do?</p>