[Tutor] Path?

Steven D'Aprano steve at pearwood.info
Mon Jul 12 01:32:06 CEST 2010

On Mon, 12 Jul 2010 03:42:28 am Jim Byrnes wrote:
> I am running Ubuntu.  I downloaded the source code examples for a
> book I purchased.  Some of the examples load image files located in
> the same directory as the program.  If I go to the current directory
> in the terminal the program can use the image files.  However, if I
> use a launcher or the filemanager it pops up an error dialog saying
> the file does not exist even though it is in the same directory.
> The program simply uses the files name.  Is there a way without
> editing the source and inserting the full path to run the program
> from a launcher or the filemanager and allow it to see files in the
> current directory?

What file manager are you using? Nautilus? Konqueror? Something else?

What do you mean, "use a launcher"? Use a launcher to do what? What sort 
of launcher?

What pops up an error dialog? The launcher?

Which file does it claim doesn't exist? Python? The Python script? The 
image file? What is the exact error message it gives?

There's probably a way to tell the launcher which working directory to 
use, but of course that depends on the answers to the above questions.

Steven D'Aprano

More information about the Tutor mailing list