I want to get a path location as ' \\BIWDB02\e$\research' using os.join.path
I tried these ways
import os
a = 'BIWDB02'
b = 'e$\research'
c = '\\\\'
print c
# \\
Try-1:
x = os.path.join('\\','\\',a,b)
print x
output:
\BIWDB02\e$
esearch
Don't know why it is coming on next line and even 'r' is missing.
Try-2 ,3
y = os.path.join('\\\\',a,b)
print y
z= os.path.join(c,a,b)
print z
Error:
IndexError: string index out of range
Update:
os.path.join('\\\\\\',a,b)
#\\\BIWDB02\e$\research
with 6-\\\ it gives me 3-\\ but with 4-\\ it gives me indexError again.