From d3170f4c40ddbb65d258fb60375656321f7fd808 Mon Sep 17 00:00:00 2001 From: Leonardo Robol Date: Sat, 20 Jun 2009 18:05:00 +0200 Subject: [PATCH] =?UTF-8?q?Modificato=20il=20programma=20principale=20in?= =?UTF-8?q?=20modo=20da=20fare=20un=20chdir=20nella=20directory=20dove=20c?= =?UTF-8?q?'=C3=A8=20l'eseguibile,=20di=20modo=20che=20riesca=20a=20trovar?= =?UTF-8?q?e=20le=20librerie=20che=20gli=20servono=20per=20avviarsi.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- songbook-editor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/songbook-editor.py b/songbook-editor.py index da865ec..34f3299 100755 --- a/songbook-editor.py +++ b/songbook-editor.py @@ -1,8 +1,11 @@ #!/usr/bin/env python -import re,sys +import re,sys, os sys.path.append("./libs") sys.path.append("./ui") +# Questo e' solo un trucchetto per fare in modo che il programm +# trovi le mie librerie anche se viene lanciato da strani posti :) +os.chdir("".join(sys.argv[0].rsplit("songbook-editor.py",1))) from PyQt4 import QtGui, QtCore from interface import * from options import * -- 2.1.4