[tipfy] push by rodrigo.moraes - Call set_path() actually inside main(). on 2011-04-24 12:22 GMT

1 view
Skip to first unread message

ti...@googlecode.com

unread,
Apr 24, 2011, 8:23:02 AM4/24/11
to tipfy-...@googlegroups.com
Revision: 981a05b4fba3
Author: Rodrigo Moraes <rodrigo...@gmail.com>
Date: Sun Apr 24 05:22:59 2011
Log: Call set_path() actually inside main().
http://code.google.com/p/tipfy/source/detail?r=981a05b4fba3

Modified:
/project/app/main.py
/project/app/set_sys_path.py

=======================================
--- /project/app/main.py Sat Apr 23 15:36:10 2011
+++ /project/app/main.py Sun Apr 24 05:22:59 2011
@@ -30,8 +30,8 @@
enable_jinja2_debugging()

def main():
+ set_sys_path.set_path()
app.run()

if __name__ == '__main__':
- set_sys_path.set_path()
main()
=======================================
--- /project/app/set_sys_path.py Sat Apr 23 15:49:54 2011
+++ /project/app/set_sys_path.py Sun Apr 24 05:22:59 2011
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-
"""Sets sys.path for the library directories.

-The purpose of this file is to define extra paths in a single place. This
is
-convenient in case many entry points are used instead of a single main.py.
+The purpose of this file is to have a single place to define extra paths.
+This is convenient in case many entry points are used instead of a single
+main.py.
"""
import os
import sys

Reply all
Reply to author
Forward
0 new messages