Revision 138,
322 bytes
checked in by marcus, 14 years ago
(diff) |
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Rev Id Date
|
Line | |
---|
1 | # -*- coding: utf-8 -*- |
---|
2 | |
---|
3 | import ctypes as C |
---|
4 | import os |
---|
5 | import locale |
---|
6 | |
---|
7 | import gtk |
---|
8 | del gtk |
---|
9 | |
---|
10 | lib = C.CDLL(os.path.join(".", "sscanflib.so")) |
---|
11 | |
---|
12 | # if not set, the test function will fail (if your locale settings say, that |
---|
13 | # number fractions are not separated by a dot (e.g. comma) |
---|
14 | locale.setlocale(locale.LC_ALL, "C") |
---|
15 | |
---|
16 | lib.test() |
---|
Note: See
TracBrowser
for help on using the repository browser.