Ticket #4788: turtleart.patch

File turtleart.patch, 690 bytes (added by Thomee, 10 years ago)

Proof of concept fix

  • taconstants.py

    old new  
    2020#THE SOFTWARE.
    2121
    2222from gettext import gettext as _
     23import getpass
    2324
    2425# Packaging constants
    2526SUFFIX = ('.ta', '.tb')
     
    8182XO30 = 'xo3.0'
    8283XO4 = 'xo4'
    8384UNKNOWN = 'unknown'
    84 TMP_SVG_PATH = '/tmp/turtle_output.svg'
    85 TMP_ODP_PATH = '/tmp/turtle_presentation'
     85TMP_SVG_PATH = '/tmp/turtle_output_' + getpass.getuser() + '.svg'
     86TMP_ODP_PATH = '/tmp/turtle_presentation_' + getpass.getuser()
    8687
    8788ARG_MUST_BE_NUMBER = ['product2', 'minus2', 'random', 'remainder2', 'forward',
    8889                      'back', 'left', 'right', 'arc', 'setxy2', 'setxy',