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!
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) exists( abs_data_ path): path_not_ found
if os.path.
return abs_data_path
else:
raise project_
If the patch is applied, that turns into this:
abs_data_path = os.path. abspath( pathname) exists( abs_data_ path): path_not_ found(abs_ data_path)
if os.path.
return abs_data_path
else:
raise project_
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!