Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python join paths

import os

# Join paths using OS import. Takes any amount of arguments
path = os.path.join('/var/www/public_html', './app/', ".my_file.json")

print(path) # /var/www/public_html/app/myfile.json
 
PREVIOUS NEXT
Tagged: #python #join #paths
ADD COMMENT
Topic
Name
6+8 =