From 29cb0986072820d0f3c5b83e757bd3a664e66cdb Mon Sep 17 00:00:00 2001 From: lelgenio Date: Wed, 31 Mar 2021 13:10:28 -0300 Subject: [PATCH] crontab: remove ordered_path function --- dotfiles/crontab | 2 +- funcs.py | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/dotfiles/crontab b/dotfiles/crontab index 5070d2d..652bd14 100644 --- a/dotfiles/crontab +++ b/dotfiles/crontab @@ -1,5 +1,5 @@ # {{@@ header() @@}} -PATH={{@@ ordered_path() @@}} +PATH={{@@ env['PATH'] @@}} # {%@@ if env['USER'] != 'root' @@%} # #minute hour day month day_week cmd diff --git a/funcs.py b/funcs.py index 75f0f25..627650d 100644 --- a/funcs.py +++ b/funcs.py @@ -7,17 +7,6 @@ def parent_dir(path): return os.path.split(path)[0] -def ordered_path(): - PATH = os.environ['PATH'] - - newPATH = [] - for i in PATH.split(":"): - if i not in newPATH: - newPATH.append(i) - - return ':'.join(newPATH) - - def rclone_obscure(pass_name): try: fPath = os.path.expanduser("~/.config/rclone/rclone.conf")