← Back to team overview

team4alfanous team mailing list archive

[Branch ~team4alfanous/alfanous/alfanous-git] Rev 368: change CONFIGPATH to use home folder

 

------------------------------------------------------------
revno: 368
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Fri 2012-10-05 01:59:07 +0100
message:
  change CONFIGPATH to use home folder
modified:
  src/alfanous-desktop/Gui.py


--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git

Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'src/alfanous-desktop/Gui.py'
--- src/alfanous-desktop/Gui.py	2012-10-05 00:52:58 +0000
+++ src/alfanous-desktop/Gui.py	2012-10-05 00:59:07 +0000
@@ -53,8 +53,9 @@
 from alfanous.Data import Paths
 
 
+
+
 ## Load Qt forms & dialogs on real time
-
 THIS_FILE_DIR_PATH = os.path.dirname(os.path.abspath(__file__)) + "/"
 Ui_MainWindow = uic.loadUiType( THIS_FILE_DIR_PATH + "UI/mainform.ui" )[0]
 Ui_aboutDlg = uic.loadUiType( THIS_FILE_DIR_PATH + "UI/aboutDlg.ui" )[0]
@@ -64,6 +65,7 @@
 RAWoutput = Raw() # default paths
 
 ## STATIC GLOBAL variables
+CONFIGPATH = ( os.getenv( 'USERPROFILE' ) or os.getenv( 'HOME' ) or "." ) + "/"
 PERPAGE = 10 #results per page
 DIR = _( "ltr" ) #direction: default
 RELATIONS = ["", "", u"|", u"+", u"-"]