Thank you for your input! ...after trying that I get a comma after every letter. But I think this is getting close. Any ideas?
- Code: Select all
fullPathName = mediaDir + project.GetName() + "/" + "footage" + "/" + dirLoc + "/" + newFileName
The code above outputs this:
/Volumes/Media/TWO_CHAIRS/footage/FW_C0001/FW_C0001_000000.dng- Code: Select all
string_val = ','.join(fullPathName)
print("String: " + string_val)
Adding the join function outputs this:
String:
,V,o,l,u,m,e,s,/,M,e,d,i,a,/,T,W,O,_,C,H,A,I,R,S,/,f,o,o,t,a,g,e,/,F,W,_,C,0,0,0,1,/,F,W,_,C,0,0,0,1,_,0,0,0,0,0,0,.,d,n,gThe output I would like instead is this (with an empty space after the comma):
String:
'/Volumes/Media/TWO_CHAIRS/footage/FW_A01_C0001/FW_A01_C0001_000000.dng',