Added by Jeremy Cline almost 5 years ago
Distribution storage path no longer dependant on hostname and PRNG.
Use os.path.relpath instead of str.lstrip when determining the relative path of a distribution file during content import.
The Python method
str.lstrip takes a list of chars, but this is
treated as a set of characters to strip from the left side of the
string, not as a substring to remove. This was problematic for many
reasons, but would (rather entertainingly) determine the relative path
for distribution files based on the hostname of the worker and the
psuedo-random number generator used by tempdir and uuid.