Index: shared/scripts/configuration/config.py =================================================================== diff -u -rb575f65fdac844229ace1dab1b00ffba231a1314 -r33c6394ad31cb7d91dd5eaf89153673c514e2399 --- shared/scripts/configuration/config.py (.../config.py) (revision b575f65fdac844229ace1dab1b00ffba231a1314) +++ shared/scripts/configuration/config.py (.../config.py) (revision 33c6394ad31cb7d91dd5eaf89153673c514e2399) @@ -38,6 +38,7 @@ #cloud_sync_verification INP_BUF_FILE_LOCATION = "".join([str(HOME_DIR_PATH),'/Desktop/sd-card/cloudsync/']) CLOUD_CREDENTIALS_LOCATION = "".join([str(HOME_DIR_PATH)+'/Desktop/cloudsync/credentials']) +ERROR_FILE_LOCATION = "".join([str(HOME_DIR_PATH)+'/Desktop/sd-card/service/']) #ui_logs LOG_LOCATION = "".join([str(HOME_DIR_PATH),'/Desktop/sd-card/log/']) Index: shared/scripts/configuration/utility.py =================================================================== diff -u -rb575f65fdac844229ace1dab1b00ffba231a1314 -r33c6394ad31cb7d91dd5eaf89153673c514e2399 --- shared/scripts/configuration/utility.py (.../utility.py) (revision b575f65fdac844229ace1dab1b00ffba231a1314) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 33c6394ad31cb7d91dd5eaf89153673c514e2399) @@ -865,19 +865,6 @@ names.o_time_interval_obj["text"] = interval return names.o_time_interval_obj -def get_extracted_error_file(): - """ - This function is the handler for getting error file from service folder. - Application log file is automatically created on '/home/denali/Desktop/sd-card/service/ {current_date}_denaliSquish.err ' - @return latest_file - (string) returns latest file that append on log folder from service - """ - try: - current_date = get_current_date_and_time(date_format = "%Y_%m_%d") - latest_file = '/home/denali/Desktop/sd-card/service/'+current_date+'_denaliSquish.err' - return latest_file - except: - return False - def keyboard_input(key_value): names.o_keyboard_object["text"] = key_value return names.o_keyboard_object @@ -980,6 +967,7 @@ except OSError: test.log("Directory can not be created") + def get_cloud_sync_input_file(): """ This function is the handler for getting file from log folder. @@ -1118,3 +1106,18 @@ raise LookupError("value object is not in view to the user after trying 100 times") +def get_extracted_error_file(): + """ + This function is the handler for getting error file from service folder. + + Application log file is automatically created on '/home/denali/Desktop/sd-card/service/ {current_date}_denaliSquish.err ' + + @return latest_file - (string) returns latest file that append on log folder from service + """ + try: + current_date = get_current_date_and_time(date_format = "%Y_%m_%d") + latest_file = config.ERROR_FILE_LOCATION + current_date + '_denaliSquish.err' + return latest_file + except: + return False + \ No newline at end of file