Skip to content

Commit

Permalink
Update QuykHtml.py
Browse files Browse the repository at this point in the history
Fixed read_file support for express calls.
  • Loading branch information
mwd1993 authored Feb 17, 2023
1 parent c139270 commit 1682503
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion QuykHtml.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,12 @@ def file_read(self, file_name, file_path='', to_list=False):
dir_path = file_path
else:
dir_path = os.path.dirname(os.path.realpath(__file__)) + '/'
f = open(dir_path + file_name, 'r')
f = ""
read = ""
try:
f = open(dir_path + file_name, 'r')
except:
f = open(file_name, 'r')
read = f.read()
f.close()
if to_list:
Expand Down

0 comments on commit 1682503

Please sign in to comment.