Thanks,
Dave
On Mar 9, 5:42 pm, Luke Faraone <l...@faraone.cc> wrote:
import subprocess
subprocess.call(['xdg-open', 'PATH_TO_FILE_OR_DIR'])
This will open the file or directory in the correct program based on
your current desktop environment.
On Mar 9, 6:19 pm, Chris Dekter <cdek...@gmail.com> wrote:
> A simpler more generic solution would be:
>
> import subprocess
> subprocess.call(['xdg-open', 'PATH_TO_FILE_OR_DIR'])
>
> This will open the file or directory in the correct program based on
> your current desktop environment.
>
> On 10 March 2010 11:42, Luke Faraone <l...@faraone.cc> wrote: