Skip to content

Commit aa06b8c

Browse files
committed
1 parent 7897e90 commit aa06b8c

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<div align=center><img src="py.ico" width=" "></div>
12
<h1 align="center" name="binpython">BINPython</h1>
23
<p align="center">
34
<em>Lightweight and small portable Python, build with pyinstaller

binpythonfull.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,18 @@ def binpython_releases_ver():
4242

4343
def binpython_build_importlibs():
4444
print(importlibs)
45+
import platform
46+
sys = platform.system()
4547

46-
def setwindowtitle(titlename):
47-
import ctypes
48-
ctypes.windll.kernel32.SetConsoleTitleW(titlename)
48+
if sys == "Windows":
49+
def setwindowtitle(titlename):
50+
import ctypes
51+
ctypes.windll.kernel32.SetConsoleTitleW(titlename)
4952
def binpythonallconf():
5053
print("ver: " + ver + " buildversion: " + buildversion + " libs_warning settings:" + libs_warning + " releases full version: " + releases_ver + " custom library that has been build: " + importlibs)
51-
import ctypes
52-
53-
ctypes.windll.kernel32.SetConsoleTitleW("BINPython " + ver)
54+
if sys == "Windows":
55+
import ctypes
56+
ctypes.windll.kernel32.SetConsoleTitleW("BINPython " + ver)
5457
def self_import(name):
5558
__import__(name)
5659
try:

buildlinux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pyinstaller --onefile binpythonfull.spec
1+
pyinstaller binpythonfull.spec

buildwin.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pyinstaller --onefile binpythonfull.spec
1+
pyinstaller binpythonfull.spec

0 commit comments

Comments
 (0)