[Bug 497688] Re: having project_path_not_found show the path it failed to find would ease debug

Philip Peitsch philip.peitsch at gmail.com
Thu Dec 17 21:48:27 UTC 2009


Hi Didier,

I am still a little confused sorry :)

Inside the project_nameconfig.py file, there is a function called
getdatapath().  From my reading, the purpose is to get the absolute path
to the data folder (that holds media etc.).  The bottom half of this
looks like:

    abs_data_path = os.path.abspath(pathname)
    if os.path.exists(abs_data_path):
        return abs_data_path
    else:
        raise project_path_not_found

If the patch is applied, that turns into this:

    abs_data_path = os.path.abspath(pathname)
    if os.path.exists(abs_data_path):
        return abs_data_path
    else:
        raise project_path_not_found(abs_data_path)

The key difference being that the exception actually outputs the
abs_data_path that it just checked for.  So I don't quite understand
your comment that there is no data to print :-)... I just want it to
print the pathname :-).

The main justification for this is that in the event of a quickly-made
application not starting, I have already had a user simply paste that
error command.  The actual issue faced would have been much more
apparent if the project_path_not_found exception had actually printed
out where it was looking in, as the user had installed the quickly
application to a custom location, and the data path for the project was
very obviously incorrect :-)

Thanks for the great work so far though!  I am using quickly most
evenings these days... I would struggle to develop without your very
handy tool!

-- 
having project_path_not_found show the path it failed to find would ease debug
https://bugs.launchpad.net/bugs/497688
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list