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")