code stringlengths 1 1.72M | language stringclasses 1
value |
|---|---|
"""
PyInstaller is a program that converts (packages) Python programs into
stand-alone executables, under Windows, Linux, and Mac OS X. Its main
advantages over similar tools are that PyInstaller works with any
version of Python since 2.2, it builds smaller executables thanks to
transparent compression, it is fully mul... | Python |
# Copyright (C) 2005-2011, Giovanni Bajo
# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc.
#
# 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 2
# of the ... | Python |
#
# Copyright (C) 2012, Martin Zibricky
# Copyright (C) 2005, Giovanni Bajo
# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc.
#
# 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 Fou... | Python |
import os
import sys
os.environ["MATPLOTLIBDATA"] = os.path.join(sys._MEIPASS, "mpl-data")
| Python |
# Copyright (C) 2005, Giovanni Bajo
# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc.
#
# 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 2
# of the Licen... | Python |
import os
import sys
basedir = sys._MEIPASS
tcldir = os.path.join(basedir, '_MEI', 'tcl')
tkdir = os.path.join(basedir, '_MEI', 'tk')
# Directories with .tcl files.
os.environ["TCL_LIBRARY"] = tcldir
os.environ["TK_LIBRARY"] = tkdir
| Python |
# Copyright (C) 2009, Lorenzo Berni
# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc.
#
# 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 2
# of the... | Python |
import sys
import iu
# Search all import directors for a PYZOwner one
for im in sys.importManager.metapath:
if isinstance(im, iu.PathImportDirector):
for arch in im.shadowpath.values():
if isinstance(arch, archive.PYZOwner):
# import all modules `*ImagePlugin`
fo... | Python |
# Copyright (C) 2005, Giovanni Bajo
#
# 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 2
# of the License, or (at your option) any later version.
#
# In addition to the permissions... | Python |
# Qt4 plugins are bundled as data files (see hooks/hook-PyQt4*),
# within a "qt4_plugins" directory.
# We add a runtime hook to tell Qt4 where to find them.
import os
import sys
d = "qt4_plugins"
d = os.path.join(sys._MEIPASS, d)
# We remove QT_PLUGIN_PATH variable, beasuse we want Qt4 to load
# plugins only from o... | Python |
#
# Copyright (C) 2012, Chien-An "Zero" Cho
#
# 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 2
# of the License, or (at your option) any later version.
#
# This program is distri... | Python |
import os
import sys
d = "localedata"
d = os.path.join(sys._MEIPASS, d)
import babel.localedata
babel.localedata._dirname = d
| Python |
import sys
import iu
# Search all import directors for a PYZOwner one
for im in sys.importManager.metapath:
if isinstance(im, iu.PathImportDirector):
for arch in im.shadowpath.values():
if isinstance(arch, archive.PYZOwner):
# import all modules `*ImagePlugin`
fo... | Python |
# At least on Windows, Python seems to hook up the codecs on this
# import, so it's not enough to just package up all the encodings.
import encodings
| Python |
#!/usr/bin/env python
#
# Make .eggs and zipfiles available at runtime
#
# Copyright (C) 2010 Giovanni Bajo <rasky@develer.com>
#
# This file is part of PyInstaller <http://www.pyinstaller.org>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public Licens... | Python |
# -*- mode: python -*-
__testname__ = 'test_encoders'
a = Analysis([__testname__ + '.py'],
pathex=[])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
debug=False,
stri... | Python |
# -*- mode: python -*-
__testname__ = 'test_5'
a = Analysis([__testname__ + '.py'],
pathex=[])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
[('W ignore', '', 'OPTION')],
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
... | Python |
# -*- mode: python -*-
__testname__ = 'test_chdir_meipass'
a = Analysis([__testname__ + '.py'], pathex=['.'])
pyz = PYZ(a.pure)
exe = EXE( pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name=os.path.join('dist', __testname__, __testname__ + '.exe'),
debug... | Python |
# -*- mode: python -*-
__testname__ = 'test_celementtree'
a = Analysis([__testname__ + '.py'],
pathex=[])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
debug=True,
s... | Python |
# -*- mode: python -*-
__testname__ = 'test_12'
a = Analysis([__testname__ + '.py'],
pathex=[])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
debug=0,
console=1)
col... | Python |
# -*- mode: python -*-
__testname__ = 'test_13'
a = Analysis([__testname__ + '.py'],
pathex=[])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
debug=False,
strip=Fals... | Python |
attrs = [('notamodule','')]
def hook(mod):
import os, sys, marshal
other = os.path.join(mod.__path__[0], '../pkg2/__init__.pyc')
if os.path.exists(other):
co = marshal.loads(open(other,'rb').read()[8:])
else:
co = compile(open(other[:-1],'rU').read()+'\n', other, 'exec')
mod.__init__... | Python |
# -*- mode: python -*-
__testname__ = 'test_nestedlaunch1'
a = Analysis([__testname__ + '.py'],
pathex=[''])
pyz = PYZ(a.pure)
exe = EXE( pyz,
a.scripts,
a.binaries,
a.zipfiles,
name=os.path.join('dist', __testname__, __testname__ + '.exe'),
debug=False,
... | Python |
# Copyright (C) 2005, Giovanni Bajo
# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc.
#
# 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 2
# of the... | Python |
# -*- mode: python -*-
__testname__ = 'test_helloworld'
a = Analysis([__testname__ + '.py'],
pathex=['.'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
debug=False,
... | Python |
# -*- mode: python -*-
__testname__ = 'test_python_makefile_onefile'
a = Analysis([__testname__ + '.py'],
pathex=['.'],
hiddenimports=[],
hookspath=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
... | Python |
""" pkg1.a.py is never imported """
print " %s" % __doc__
print " %s %s" % (__name__, __file__)
| Python |
""" pkg1 replaces itself with pkg2"""
__all__ = ["a", "b"]
import pkg2
import sys
sys.modules[__name__] = pkg2
from pkg2 import *
| Python |
# -*- mode: python -*-
__testname__ = 'test_time'
a = Analysis([__testname__ + '.py'],
pathex=['.'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
debug=False,
strip... | Python |
# -*- mode: python -*-
__testname__ = 'test_threading2'
a = Analysis([__testname__+'.py'],
pathex=[],
hiddenimports=[],
hookspath=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, _... | Python |
# -*- mode: python -*-
a = Analysis(['test_site.py'],
pathex=['/home/martin/Work/pyinstaller/gitrepo/buildtests/import'],
hiddenimports=['encodings'],
hookspath=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('b... | Python |
# -*- mode: python -*-
import sys
import os
is_win = sys.platform.startswith('win')
is_darwin = sys.platform == 'darwin' # Mac OS X
def mac_gcc_architecture():
"""
Returns the -arch parameter for gcc on Mac OS X.
"""
# Darwin's platform.architecture() is buggy and always
# returns "64bit" event... | Python |
# -*- mode: python -*-
__testname__ = 'test_threading'
a = Analysis([__testname__+'.py'],
pathex=[])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
debug=0,
console=1... | Python |
x = 2
| Python |
# -*- mode: python -*-
__testname__ = 'test_f_option'
a = Analysis([__testname__ + '.py'],
pathex=[])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
[('f','','OPTION')],
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
... | Python |
# -*- mode: python -*-
__testname__ = 'test_8'
a = Analysis([__testname__ + '.py'],
pathex=['.'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__+'.exe'),
debug=0,
strip=0,
... | Python |
""" pkg2.a defines overridden and a_func """
def a_func():
return "a_func from pkg2.a"
print "pkg2.a imported"
| Python |
""" pkg2 does various namespace tricks, __path__ append """
def notamodule():
return "notamodule from pkg2.__init__"
import os
__path__.append(os.path.join(
os.path.dirname(__file__), 'extra'))
__all__ = ["a", "b", "notamodule"]
| Python |
""" b.py lives in extra, but shows as pkg2.b (and pkg1.b)"""
def b_func():
return "b_func from pkg2.b (pkg2/extra/b.py)"
| Python |
# -*- mode: python -*-
__testname__ = 'test_filename'
a = Analysis([__testname__ + '.py'],
pathex=[])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
debug=False,
stri... | Python |
# -*- mode: python -*-
__testname__ = 'test_getfilesystemencoding'
a = Analysis([__testname__ + '.py'],
pathex=[])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
debug=False,
... | Python |
# -*- mode: python -*-
__testname__ = 'test_6'
a = Analysis([__testname__ + '.py'],
pathex=[])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
debug=0,
console=1)
coll... | Python |
# -*- mode: python -*-
__testname__ = 'test_pkg_structures'
a = Analysis([__testname__ + '.py'],
hookspath=['hooks1'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
icon=__testnam... | Python |
# -*- mode: python -*-
__testname__ = 'test_nestedlaunch0'
a = Analysis([__testname__ + '.py'],
pathex=[''])
pyz = PYZ(a.pure)
exe = EXE( pyz,
a.scripts,
a.binaries,
a.zipfiles,
name=os.path.join('dist', __testname__, __testname__ + '.exe'),
debug=False,
... | Python |
# -*- mode: python -*-
__testname__ = 'test_module_attributes'
a = Analysis([__testname__ + '.py'],
pathex=[])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
debug=False,
... | Python |
# -*- mode: python -*-
__testname__ = 'test_python_makefile'
a = Analysis([__testname__ + '.py'],
pathex=['.'],
hiddenimports=[],
hookspath=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.p... | Python |
# -*- mode: python -*-
__testname__ = 'test_get_meipass2_value'
a = Analysis([__testname__ + '.py'],
pathex=[])
a = Analysis([__testname__ + '.py'],
pathex=[],
hookspath=None)
pyz = PYZ(a.pure)
exe = EXE( pyz,
a.scripts,
a.binaries,
a.zipfiles,
... | Python |
#!/usr/bin/env python
import sys
from ctypes import *
# Current working directory is set to dist directory for tests.
def dummy(arg):
if sys.platform == "win32":
tct = CDLL("..\\..\\ctypes\\testctypes-win.dll")
elif sys.platform.startswith("darwin"):
tct = CDLL("../../ctypes/testctypes.dylib")... | Python |
#!/usr/bin/env python
#
# Copyright (C) 2011-2012 Martin Zibricky
# Copyright (C) 2011-2012 Hartmut Goebel
# Copyright (C) 2005-2011 Giovanni Bajo
# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the te... | Python |
#!/usr/bin/env python
#
# This file is part of the package for testing eggs in `PyInstaller`.
#
# Author: Hartmut Goebel <h.goebel@goebel-consult.de>
# Copyright: 2012 by Hartmut Goebel
# Licence: GNU Public Licence v3 (GPLv3)
#
from setuptools import setup
setup(name='zipped_egg',
version='0.1',
des... | Python |
#!/usr/bin/env python
#
# This file is part of the package for testing eggs in `PyInstaller`.
#
# Author: Hartmut Goebel <h.goebel@goebel-consult.de>
# Copyright: 2012 by Hartmut Goebel
# Licence: GNU Public Licence v3 (GPLv3)
#
import pkg_resources
data = pkg_resources.resource_string(__name__, 'data/datafile.tx... | Python |
#!/usr/bin/env python
#
# This file is part of the package for testing eggs in `PyInstaller`.
#
# Author: Hartmut Goebel <h.goebel@goebel-consult.de>
# Copyright: 2012 by Hartmut Goebel
# Licence: GNU Public Licence v3 (GPLv3)
#
import pkg_resources
data = pkg_resources.resource_string(__name__, 'data/datafile.tx... | Python |
#!/usr/bin/env python
#
# This file is part of the package for testing eggs in `PyInstaller`.
#
# Author: Hartmut Goebel <h.goebel@goebel-consult.de>
# Copyright: 2012 by Hartmut Goebel
# Licence: GNU Public Licence v3 (GPLv3)
#
from setuptools import setup
setup(name='unzipped_egg',
version='0.1',
d... | Python |
#
# Copyright (C) 2012, Martin Zibricky
#
# 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 2
# of the License, or (at your option) any later version.
#
# This program is distribute... | Python |
# -*- mode: python -*-
__testname__ = 'test_eggs1'
a = Analysis([__testname__ + '.py'],
pathex=['unzipped.egg', 'zipped.egg'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
de... | Python |
# -*- mode: python -*-
__testname__ = 'test_relative_import2'
a = Analysis([__testname__ + '.py'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
name = os.path.join('dist', __testname__, __testname__ +'.exe'),
debug=False,
strip=False,
... | Python |
name = 'relimp.relimp.relimp3'
| Python |
from __future__ import absolute_import
name = 'relimp.relimp.relimp2'
from . import relimp3
assert relimp3.name == 'relimp.relimp.relimp3'
from .. import relimp
assert relimp.name == 'relimp.relimp'
import relimp
assert relimp.name == 'relimp'
import relimp.relimp2
assert relimp.relimp2.name == 'relimp.relimp2'
... | Python |
name = 'relimp.relimp'
| Python |
from __future__ import absolute_import
name = 'relimp.relimp1'
from . import relimp2 as upper
from . relimp import relimp2 as lower
assert upper.name == 'relimp.relimp2'
assert lower.name == 'relimp.relimp.relimp2'
if upper.__name__ == lower.__name__:
raise SystemExit("Imported the same module")
if upper.__fi... | Python |
name = 'relimp.E'
| Python |
name = 'relimp.relimp2'
| Python |
name = 'relimp.F.G'
| Python |
name = 'relimp.F'
class H:
name = 'relimp.F.H'
| Python |
name = 'relimp'
| Python |
name = 'relimp.B.D'
class X:
name = 'relimp.B.D.X'
| Python |
name = 'relimp.B'
| Python |
name = 'relimp.B.C'
from . import D # Imports relimp.B.D
from .D import X # Imports relimp.B.D.X
from .. import E # Imports relimp.E
from ..F import G # Imports relimp.F.G
from ..F import H # Imports relimp.F.H
assert D.name == 'relimp.B.D'
as... | Python |
# -*- mode: python -*-
__testname__ = 'test_ctypes_cdll_c'
a = Analysis([__testname__ + '.py'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__,
__testname__ + '.exe'),
deb... | Python |
# -*- mode: python -*-
__testname__ = 'test_eggs2'
a = Analysis([__testname__ + '.py'],
pathex=['unzipped.egg', 'zipped.egg'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
de... | Python |
string = "I hope you see this!"
| Python |
#
| Python |
# -*- mode: python -*-
__testname__ = 'test_ctypes_cdll_c2'
a = Analysis([__testname__ + '.py'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.binaries,
a.zipfiles,
a.scripts,
name=os.path.join('dist', __testname__ + '.exe'),
debug=True,
strip=False,
upx=Fals... | Python |
import os
os.environ["qwiejioqwjeioqwjeioqwje"]
| Python |
#
# Copyright (C) 2012, Daniel Hyams
#
# 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 2
# of the License, or (at your option) any later version.
#
# This program is distributed i... | Python |
# -*- mode: python -*-
__testname__ = 'test_hiddenimport'
a = Analysis([__testname__ + '.py'],
hiddenimports=['anydbm'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, __testname__ + '.exe'),
debug=0,... | Python |
raise RuntimeError
| Python |
# -*- mode: python -*-
__testname__ = 'test_relative_import'
a = Analysis([__testname__ + '.py'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
name = os.path.join('dist', __testname__, __testname__ +'.exe'),
debug=False,
strip=False,
... | Python |
# -*- mode: python -*-
__testname__ = 'test_app_with_plugins'
a = Analysis([__testname__+'.py'], pathex=[])
TOC_custom = [('static_plugin.py','static_plugin.py','DATA')]
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build', 'pyi.'+sys.platform, _... | Python |
from .relimp3b import b1
from .relimp3c import c1
def getString():
return b1.string + c1.string
| Python |
#
| Python |
class c1:
string = "... and this"
| Python |
#
| Python |
raise ValueError
| Python |
raise ValueError
| Python |
# -*- mode: python -*-
__testname__ = 'test_error_during_import'
a = Analysis([__testname__ + '.py'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
name = os.path.join('dist', __testname__, __testname__ +'.exe'),
debug=False,
strip=Fals... | Python |
from ..baz import *
| Python |
def say_hello_please():
print "Hello World!"
| Python |
from .baz import *
| Python |
#
| Python |
#!/usr/bin/env python
#
# This file is part of the package for testing eggs in `PyInstaller`.
#
# Author: Hartmut Goebel <h.goebel@goebel-consult.de>
# Copyright: 2012 by Hartmut Goebel
# Licence: GNU Public Licence v3 (GPLv3)
#
import pkg_resources
data = pkg_resources.resource_string(__name__, 'data/datafile.tx... | Python |
# -*- mode: python -*-
__testname__ = 'test_relative_import3'
a = Analysis([__testname__ + '.py'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
name = os.path.join('dist', __testname__, __testname__ +'.exe'),
debug=False,
strip=False,
... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import httplib
import gzip
def main():
print "Hello World!"
if __name__ == "__main__":
main()
| Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import httplib
import gzip
def main():
print "Hello World!"
if __name__ == "__main__":
main()
| Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import httplib
import gzip
def main():
print "Hello World!"
if __name__ == "__main__":
main()
| Python |
# -*- mode: python -*-
'''
MULTIPROCESS FEATURE: file A (onefile pack) depends on file B (onefile pack).
'''
__testname__ = 'test_multipackage1'
__testdep__ = 'multipackage1_B'
a = Analysis([__testname__ + '.py'],
pathex=['.'])
b = Analysis([__testdep__ + '.py'],
pathex=['.'])
MERGE((b, __... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import httplib
import gzip
def main():
print "Hello World!"
if __name__ == "__main__":
main()
| Python |
# -*- mode: python -*-
'''
TESTING MULTIPROCESS FEATURE: file A (onedir pack) depends on file B (onedir pack).
'''
__testname__ = 'test_multipackage4'
__testdep__ = 'multipackage4_B'
a = Analysis([__testname__ + '.py'],
pathex=['.'])
b = Analysis([__testdep__ + '.py'],
pathex=['.'])
MERGE(... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import httplib
import gzip
def main():
print "Hello World!"
if __name__ == "__main__":
main()
| Python |
# -*- mode: python -*-
'''
TESTING MULTIPROCESS FEATURE: file A (onedir pack) depends on file B (onedir pack) and file C (onefile pack)
'''
__testname__ = 'test_multipackage5'
__testdep__ = 'multipackage5_B'
__testdep2__ = 'multipackage5_C'
a = Analysis([__testname__ + '.py'],
pathex=['.'])
b = Analysis... | Python |
Subsets and Splits
SQL Console for ajibawa-2023/Python-Code-Large
Provides a useful breakdown of language distribution in the training data, showing which languages have the most samples and helping identify potential imbalances across different language groups.