Comment 3 for bug 497688

Revision history for this message
Philip Peitsch (philip-peitsch) wrote : Re: having project_path_not_found show the path it failed to find would ease debug

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!