← Back to team overview

team4alfanous team mailing list archive

[Branch ~team4alfanous/alfanous/alfanous-git] Rev 522: add the notice that the config file should be an absolute path

 

------------------------------------------------------------
revno: 522
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Mon 2013-01-07 12:34:52 +0100
message:
  add the notice that the config file should be an absolute path
modified:
  src/alfanous-django/settings.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-django/settings.py'
--- src/alfanous-django/settings.py	2013-01-07 10:54:21 +0000
+++ src/alfanous-django/settings.py	2013-01-07 11:34:52 +0000
@@ -11,8 +11,8 @@
 # the file have to be a system-config like, ini-style file, see settings.ini.proto for a prototype
 configFile = "./settings.ini.proto" # e,g. '/etc/whatever/settings.ini'
 
-if configFile == "./settings.ini.proto":
-    print "WARNING: You need to specify a reliable path to the config file, see settings.py"
+if configFile[:2] == "./":
+    print "WARNING: You need to specify a reliable absolute path to the config file, see settings.py"
 
 
 config = RawConfigParser()