Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def create_uwg(epw_file, end_folder, name):
start_folder, epw_name = os.path.split(epw_file)
epw_name = epw_name.replace('.epw', '')
if end_folder is None:
end_folder = start_folder + '\\URBAN\\'
if name is None:
name = epw_name + '_URBAN.epw'
if not os.path.isdir(end_folder):
os.mkdir(end_folder)
return uwg(epw_name, None, start_folder, None, end_folder, name), end_folder + '\\' + name