change platform check

This commit is contained in:
Pritimay Sarkar
2023-08-21 22:27:16 +05:30
parent bddd2a137c
commit c29e215cfd

View File

@@ -96,10 +96,10 @@ def perform_calculations(curdir, path_delim, report_file):
if __name__ == "__main__":
rootdir = os.getcwd()
path_delim = ''
if platform.system() == 'Darwin':
path_delim = '/'
else:
if platform.system() == 'Windows':
path_delim = '\\'
else:
path_delim = '/'
report_file = rootdir + path_delim + 'report.xlsx'
print(report_file)