changeset 30:60d5673f9d4a

We can do that more cleanly :P
author Stefano Rivera <stefano@rivera.za.net>
date Sun, 03 Apr 2011 18:45:10 +0200
parents 10c067be3e8f
children 6f1e43d2fda8
files scripts/level-editor scripts/skaapsteker
diffstat 2 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/level-editor	Sun Apr 03 18:42:32 2011 +0200
+++ b/scripts/level-editor	Sun Apr 03 18:45:10 2011 +0200
@@ -5,8 +5,7 @@
 import os.path
 import sys
 
-sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),
-                                                '..')))
+sys.path.insert(0, os.path.abspath(os.path.abspath(__file__)))
 
 import pygame
 import pygame.key
--- a/scripts/skaapsteker	Sun Apr 03 18:42:32 2011 +0200
+++ b/scripts/skaapsteker	Sun Apr 03 18:45:10 2011 +0200
@@ -2,8 +2,7 @@
 
 import os.path
 import sys
-sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),
-                                                '..')))
+sys.path.insert(0, os.path.abspath(os.path.abspath(__file__)))
 
 import skaapsteker.__main__
 if __name__ == "__main__":