add executable file and expanduser dir

This commit is contained in:
2026-06-10 17:10:46 +03:00
parent c7c344a1e4
commit 44394be923
3 changed files with 42 additions and 1 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
dist
build
venv

View File

@@ -18,7 +18,7 @@ diff_d = input(f"{red}>>{red.OFF} 1 or enter -- no, 2 -- yes : {yellow.OFF}");
if (diff_d == 1 or diff_d == "") : if (diff_d == 1 or diff_d == "") :
print(f"{red}>>{red.OFF}{yellow} Okey, use ~/.cache/wal/{yellow.OFF}"); print(f"{red}>>{red.OFF}{yellow} Okey, use ~/.cache/wal/{yellow.OFF}");
print(f"{red}>>{red.OFF}{yellow} Go to the specified directory.{yellow.OFF}"); print(f"{red}>>{red.OFF}{yellow} Go to the specified directory.{yellow.OFF}");
os.chdir('../../../../.cache/wal'); os.chdir(os.path.expanduser("~/.cache/wal"));
else: else:
print(f"{red}>>{red.OFF}{yellow} Specify the directory: {yellow.OFF}"); print(f"{red}>>{red.OFF}{yellow} Specify the directory: {yellow.OFF}");
w_directory = input(); w_directory = input();

38
color-parser.spec Normal file
View File

@@ -0,0 +1,38 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
['color-parser.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='color-parser',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)