Skip to content

Commit 58c636f

Browse files
Actually add PrintCore library...
1 parent 4814bce commit 58c636f

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
'''
2+
Python mapping for the PrintCore framework.
3+
4+
This module does not contain docstrings for the wrapped code, check Apple's
5+
documentation for details on how to use these functions and classes.
6+
'''
7+
import sys
8+
import objc
9+
import Cocoa
10+
11+
from PrintCore import _metadata
12+
13+
sys.modules['PrintCore'] = mod = objc.ObjCLazyModule('PrintCore',
14+
"com.apple.ApplicationServices",
15+
objc.pathForFramework("/System/Library/Frameworks/ApplicationServices.framework"),
16+
_metadata.__dict__, None, {
17+
'__doc__': __doc__,
18+
'__path__': __path__,
19+
'__loader__': globals().get('__loader__', None),
20+
'objc': objc,
21+
}, ( Cocoa, ))
22+
23+
import sys
24+
del sys.modules['PrintCore._metadata']

0 commit comments

Comments
 (0)