diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-11-12 20:37:25 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-11-12 20:37:25 (GMT) |
commit | e9aebf356a55740530c17ea9186115dd0f29f246 (patch) | |
tree | 88b4060984f1113785f868f3d72dd9d221f44610 | |
parent | db8165a1f29266775adea4744e7a5241a7b487f2 (diff) |
use insert 0 instead of appendv193
-rw-r--r-- | TurtleArt/taexportpython.py | 8 |
1 files changed, 4 insertions, 4 deletions
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) |