Skip to content

Commit

Permalink
handle backslah path in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
agrouaze committed Jan 7, 2025
1 parent 5f5d14d commit a3b7dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slcl1butils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,5 @@ def get_l1c_filepath(l1b_fullpath, version, outputdir=None, makedir=True):
logging.debug("File out: %s ", l1c_full_path)
if not os.path.exists(os.path.dirname(l1c_full_path)) and makedir:
os.makedirs(os.path.dirname(l1c_full_path), 0o0775)
l1c_full_path = os.path.normpath(l1c_full_path)
l1c_full_path = os.path.normpath(l1c_full_path).replace("\\","/") # platform windows security
return l1c_full_path

0 comments on commit a3b7dc9

Please sign in to comment.