crontab: remove ordered_path function
This commit is contained in:
parent
6a7046af59
commit
29cb098607
|
@ -1,5 +1,5 @@
|
||||||
# {{@@ header() @@}}
|
# {{@@ header() @@}}
|
||||||
PATH={{@@ ordered_path() @@}}
|
PATH={{@@ env['PATH'] @@}}
|
||||||
|
|
||||||
# {%@@ if env['USER'] != 'root' @@%} #
|
# {%@@ if env['USER'] != 'root' @@%} #
|
||||||
#minute hour day month day_week cmd
|
#minute hour day month day_week cmd
|
||||||
|
|
11
funcs.py
11
funcs.py
|
@ -7,17 +7,6 @@ def parent_dir(path):
|
||||||
return os.path.split(path)[0]
|
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):
|
def rclone_obscure(pass_name):
|
||||||
try:
|
try:
|
||||||
fPath = os.path.expanduser("~/.config/rclone/rclone.conf")
|
fPath = os.path.expanduser("~/.config/rclone/rclone.conf")
|
||||||
|
|
Reference in New Issue