How to convert backward slash command in python to run on Linux -


i error on line when run code in linux:

dst_file_path = "%s\%s" % (dst,loc[1])    

how can using module. in advance.

os.path.join automatically include correct directory separator based on platform being used.

import os  dst_file_path = os.path.join(dst, loc[1]) 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -