[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#866472: copyright extract script



I attach the script. It prints some (c) info on the *_rc.py files. 
You might need to change the uniconvertor directory in the script. 
And you may not really find it too enlightening...
# -*- coding: utf-8 -*-
#
#  Copyright (C) 2011-2018 by Igor E. Novikov
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <https://www.gnu.org/licenses/>.

import os
import sys

sys.path.insert(1, '/usr/lib/uniconvertor-2.0rc4')

from uc2 import cms

man = cms.ColorManager()
for k in man.handles:
    print k, '(c)', cms.libcms.cms_get_profile_copyright(man.handles[k]), ' name: ', cms.libcms.cms_get_profile_name(man.handles[k]), ' info: ', cms.libcms.cms_get_profile_info(man.handles[k])
profile = cms.libcms.cms_create_display_profile();
print 'display', '(c)', cms.libcms.cms_get_profile_copyright(profile), ' name: ', cms.libcms.cms_get_profile_name(profile), ' info: ', cms.libcms.cms_get_profile_info(profile)

Reply to: