From e9aebf356a55740530c17ea9186115dd0f29f246 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 12 Nov 2013 20:37:25 +0000 Subject: use insert 0 instead of append --- (limited to 'TurtleArt') diff --git a/TurtleArt/taexportpython.py b/TurtleArt/taexportpython.py index 819682e..435bd06 100644 --- a/TurtleArt/taexportpython.py +++ b/TurtleArt/taexportpython.py @@ -45,15 +45,15 @@ _ALTERNATIVE_INSTALL_PATH = \ import os, sys if os.path.exists('../TurtleBlocks.activity'): - sys.path.append('../TurtleBlocks.activity') + sys.path.insert(0, '../TurtleBlocks.activity') elif os.path.exists(os.path.join(os.path.expanduser('~'), 'Activities', 'TurtleBlocks.activity')): - sys.path.append(os.path.join(os.path.expanduser('~'), 'Activities', + sys.path.insert(0, os.path.join(os.path.expanduser('~'), 'Activities', 'TurtleBlocks.activity')) elif os.path.exists(_INSTALL_PATH): - sys.path.append(_INSTALL_PATH) + sys.path.insert(0, _INSTALL_PATH) elif os.path.exists(_ALTERNATIVE_INSTALL_PATH): - sys.path.append(_ALTERNATIVE_INSTALL_PATH) + sys.path.insert(0, _ALTERNATIVE_INSTALL_PATH) else: print 'This code require the TurtleBlocks activity to be installed.' exit(1) -- cgit v0.9.1