# HG changeset patch # User Stefano Rivera # Date 1301848952 -7200 # Node ID 10c067be3e8f99e0b71d85fb6b9b434269341474 # Parent 94d5ebaa912f31b554d774bbbb7bea0544d818b8 Patch sys.path diff -r 94d5ebaa912f -r 10c067be3e8f scripts/level-editor --- a/scripts/level-editor Sun Apr 03 18:41:52 2011 +0200 +++ b/scripts/level-editor Sun Apr 03 18:42:32 2011 +0200 @@ -2,6 +2,11 @@ "Skaapsteker level editor" import optparse +import os.path +import sys + +sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), + '..'))) import pygame import pygame.key diff -r 94d5ebaa912f -r 10c067be3e8f scripts/skaapsteker --- a/scripts/skaapsteker Sun Apr 03 18:41:52 2011 +0200 +++ b/scripts/skaapsteker Sun Apr 03 18:42:32 2011 +0200 @@ -1,5 +1,10 @@ #!/usr/bin/env python +import os.path +import sys +sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), + '..'))) + import skaapsteker.__main__ if __name__ == "__main__": skaapsteker.__main__.main()