Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fixed assets go into a setup dir #399
Conversation
coveralls
commented
Mar 23, 2016
|
retest this please |
|
retest this please |
|
|
|
the branch is ok, but it's missing some docs explaining the use of the new directory. |
|
Good point @elopio, "assets" does seem more appropriate. |
|
@sergiusens alright, that works. |
zyga
reviewed
Mar 23, 2016
| + | ||
| + license_src = os.path.join(setup_dir, 'license.txt') | ||
| + license_dst = os.path.join(meta_dir, 'license.txt') | ||
| + if os.path.exists(license_dst) and os.path.exists(license_src): |
zyga
Mar 23, 2016
Contributor
This could be moved under the subsequent test if os.path.exists(license_src) and simplified to just if os.path.exists(license_dst), that is easier to read for me.
sergiusens
Mar 23, 2016
Collaborator
right, thanks for the suggestion, it feels like personal taste; I don't like nesting ifs; but your solution would be more performant.
zyga
reviewed
Mar 23, 2016
| + | ||
| + gui_src = os.path.join(setup_dir, 'gui') | ||
| + gui_dst = os.path.join(meta_dir, 'gui') | ||
| + if os.path.exists(gui_dst) and os.path.exists(gui_src): |
zyga
reviewed
Mar 23, 2016
| + _setup_from_setup(meta_dir) | ||
| + | ||
| + | ||
| +def _setup_from_setup(meta_dir): |
zyga
Mar 23, 2016
Contributor
This looks okay but I'd like @mvo5 to ack it as well. I'm not 100% sure of the design of the setup directory.
|
+1 but please get an ack from @mvo5 as I'm not 100% sure about setup/ |
|
I've already spotted many places where docs are lacking or plain 15.04 incorrect; I'll work on a general branch for that. |
sergiusens commentedMar 23, 2016
Instead of declaring fixed assets we put them into a
setupdir.Implementation for gui (including icon) and license provided.
LP: 1560969
Signed-off-by: Sergio Schvezov sergio.schvezov@ubuntu.com