added extras

This commit is contained in:
acidburn
2023-04-25 17:58:13 -04:00
parent f8d1b8ec9d
commit 837f302dd8
2 changed files with 20 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import os
import subprocess
this_dir = os.getcwd()
for root ,b,files in os.walk(os.path.join(this_dir,'dotfiles')):
for element in files:
if '.sh' in element or '.py' in element:
try:
subprocess.run(f"chmod +x {os.path.join(root,element)}", shell=True)
except Exception():
print(Exception())
print(os.path.join(root,element))