changeset 29:10c067be3e8f

Patch sys.path
author Stefano Rivera <stefano@rivera.za.net>
date Sun, 03 Apr 2011 18:42:32 +0200
parents 94d5ebaa912f
children 60d5673f9d4a
files scripts/level-editor scripts/skaapsteker
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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()