add executable file and expanduser dir
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
dist
|
||||||
|
build
|
||||||
|
venv
|
||||||
@@ -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
38
color-parser.spec
Normal 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,
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user