SF.net SVN: fclient: [454] trunk/fcp2/src/fcp2/__init__.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-07-01 11:26:27
|
Revision: 454
http://fclient.svn.sourceforge.net/fclient/?rev=454&view=rev
Author: jUrner
Date: 2008-07-01 04:26:28 -0700 (Tue, 01 Jul 2008)
Log Message:
-----------
for ease of use, all necessary symbols are now imported to main
Modified Paths:
--------------
trunk/fcp2/src/fcp2/__init__.py
Modified: trunk/fcp2/src/fcp2/__init__.py
===================================================================
--- trunk/fcp2/src/fcp2/__init__.py 2008-07-01 08:17:17 UTC (rev 453)
+++ trunk/fcp2/src/fcp2/__init__.py 2008-07-01 11:26:28 UTC (rev 454)
@@ -2,16 +2,36 @@
See: [http://www.freenetproject.org] and [http://wiki.freenetproject.org/FreenetFCPSpec2Point0]
"""
+import os, sys
-
__author__ = 'Juergen Urner'
__copyright__ = '(c) 2008 - Juergen Urner'
__email__ = 'jue...@ar...'
__licence__ = 'Mit'
__version__ = '0.1'
+
+#--> rel import hack
+class _RelImportHack(object):
+ def __init__(self, n):
+ fpath = os.path.abspath(__file__)
+ for i in xrange(n): fpath = os.path.dirname(fpath)
+ sys.path.insert(0, fpath)
+ def __del__(self): sys.path.pop(0)
+hack = _RelImportHack(2)
+
+from fcp2.client import *
+from fcp2.config import *
+from fcp2.consts import *
+from fcp2.key import *
+from fcp2.message import *
+from fcp2.types import *
+
+del hack, _RelImportHack
+#<-- rel import hack
+
#****************************************************************************************
#
#****************************************************************************************
-def getFcpClient():
- pass
+for i in sorted(dir()): print i
+print '<<<<<<<<<<<<<<<<<<<'
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|