File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -243,11 +243,11 @@ def proto_flow(self):
243243 self .enum_host_info ()
244244
245245 # Construct the output file template using os.path.join for OS compatibility
246- base_log_dir = os .path .join (os . path . expanduser ( NXC_PATH ) , "logs" )
246+ base_log_dir = os .path .join (NXC_PATH , "logs" )
247247 filename_pattern = f"{ self .hostname } _{ self .host } _{ datetime .now ().strftime ('%Y-%m-%d_%H%M%S' )} " .replace (":" , "-" )
248248 self .output_file_template = os .path .join (base_log_dir , "{output_folder}" , filename_pattern )
249249 # Default output filename for logs
250- self .output_filename = self . output_file_template . format ( output_folder = "logs" )
250+ self .output_filename = os . path . join ( base_log_dir , filename_pattern )
251251
252252 self .print_host_info ()
253253 if self .login () or (self .username == "" and self .password == "" ):
You can’t perform that action at this time.
0 commit comments