rubik / pyg

A Python Package Manager
http://pyg-installer.co.nr
MIT License
21 stars 3 forks source link

Allow comments in Pyg configuration files #82

Closed rubik closed 13 years ago

rubik commented 13 years ago

Like this:

[global]
# I don't want colors
no_colors = True

[install]
# this is my local package index
index_url = 'http://my/url' # don't use on other systems
fdev31 commented 13 years ago

Are you sure that's not already working ? Here it looks like I can...

rubik commented 13 years ago

Oh yes, I didn't notice that. I think it's because ConfigParser automatically skip comments (either # or ; ).

EDIT: Yes, I found this in the docs:

Lines beginning with '#' or ';' are ignored and may be used to provide comments.

So it seems we can close the issue! :)