team4alfanous team mailing list archive
-
team4alfanous team
-
Mailing list archive
-
Message #00329
[Branch ~team4alfanous/alfanous/alfanous-git] Rev 519: add more possible paths of alfanous API to sys.path
------------------------------------------------------------
revno: 519
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Mon 2013-01-07 10:54:04 +0100
message:
add more possible paths of alfanous API to sys.path
modified:
src/alfanous-django/wui/views.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/wui/views.py'
--- src/alfanous-django/wui/views.py 2013-01-06 19:22:22 +0000
+++ src/alfanous-django/wui/views.py 2013-01-07 09:54:04 +0000
@@ -19,7 +19,11 @@
from django.utils.translation import pgettext_lazy # for ambiguities
from django.utils.translation import get_language_info
-path.append( "alfanous.egg/alfanous" )
+## either append the path of alfanous API as:
+path.append( "alfanous.egg/alfanous" ) ## an egg, portable
+path.append( "../../src" ) ## a relative path, development mode
+path.append( "/home/alfanous/alfanous-django/src/" ) ## absolute path, server mode
+
from alfanous.Outputs import Raw