Skip to content

Commit f4b2aa0

Browse files
committed
fix: add scripts directory to the full path for native zabbix-agent export
1 parent de36edd commit f4b2aa0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mamonsu/lib/runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ def quit_handler(_signo=None, _stack_frame=None):
9898
path = commands[2][:len_path] + "/scripts"
9999
Plugin.PATH = path
100100
else:
101-
path = os.getcwd()
101+
path = os.getcwd() + "/scripts"
102102
Plugin.PATH = path
103+
print(path)
103104
# create directory for scripts along the path of conf file if needed
104105
if not os.path.exists(path):
105106
os.makedirs(path)

0 commit comments

Comments
 (0)