X Tutup
Skip to content

Commit b8d4481

Browse files
committed
Added __all__ in the cefpython3 package.
1 parent b6ca192 commit b8d4481

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
cef3-trunk
22
svn-win32-1.8.5
33
cefpython.wiki
4-
.tags*
4+
.tags*
5+
/cython-version.*

cefpython/cef3/linux/installer/__init__.py.template

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
__all__ = ["cefpython", "wx"]
2+
__version__ = "%(APP_VERSION)s"
3+
__author__ = "The CEF Python authors"
4+
15
import ctypes, os
26

37
# If this is a debian package then package_dir returns:
@@ -6,7 +10,7 @@ import ctypes, os
610
# /usr/share/pyshared/cefpython3
711

812
# If package was installed using PIP or setup.py then package
9-
# dir is here:
13+
# dir is here:
1014
# /usr/local/lib/python2.7/dist-packages/cefpython3/
1115

1216
package_dir = os.path.dirname(os.path.abspath(__file__))
@@ -28,6 +32,3 @@ if 0x02070000 <= sys.hexversion < 0x03000000:
2832
from . import cefpython_py27 as cefpython
2933
else:
3034
raise Exception("Unsupported python version: " + sys.version)
31-
32-
__version__ = "%(APP_VERSION)s"
33-
__author__ = "The CEF Python authors"

cefpython/cef3/windows/installer/__init__.py.template

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
__all__ = ["cefpython", "wx"]
2+
__version__ = "%(APP_VERSION)s"
3+
__author__ = "The CEF Python authors"
4+
15
import sys
26

37
if 0x02070000 <= sys.hexversion < 0x03000000:
@@ -6,6 +10,3 @@ elif 0x03000000 <= sys.hexversion < 0x04000000:
610
from . import cefpython_py32 as cefpython
711
else:
812
raise Exception("Unsupported python version: " + sys.version)
9-
10-
__version__ = "%(APP_VERSION)s"
11-
__author__ = "The CEF Python authors"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This dummy file is overwritten by "__init__.py.template", see:
2+
# cefpython/cef3/windows/installer/
3+
# cefpython/cef3/linux/installer/

0 commit comments

Comments
 (0)
X Tutup