def set_script_prefix(prefix):
    if not prefix.endswith('/'):
        prefix += '/'
    _prefixes[currentThread()] = prefix
Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/107
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/core/urlresolvers.py/set_script_prefix--crossover with--dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/tests/test_core.py/TestConvenienceFunctions.test_writeto_2