source: libcaca/trunk/python/caca/__init__.py @ 4398

Last change on this file since 4398 was 4398, checked in by Sam Hocevar, 11 years ago

New improved ctypes-based Python bindings, by Alex Foulon <alxf@lavabit.com>.

  • Property svn:keywords set to Id
File size: 833 bytes
Line 
1# -*- coding: utf-8 -*-
2#
3# libcaca       Colour ASCII-Art library
4#               Python language bindings
5# Copyright (c) 2010 Alex Foulon <alxf@lavabit.com>
6#               All Rights Reserved
7#
8# This library is free software. It comes without any warranty, to
9# the extent permitted by applicable law. You can redistribute it
10# and/or modify it under the terms of the Do What The Fuck You Want
11# To Public License, Version 2, as published by Sam Hocevar. See
12# http://sam.zoy.org/wtfpl/COPYING for more details.
13#
14
15""" Libcaca Python bindings """
16
17import ctypes
18from ctypes.util import find_library
19
20if find_library('caca') is not None:
21    _lib = ctypes.cdll.LoadLibrary(find_library('caca'))
22else:
23    raise ImportError, \
24        "Can't find shared library, you need to install libcaca in your path !"
25
26from common import *
27
Note: See TracBrowser for help on using the repository browser.