Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F63095192
__init__.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, May 17, 18:12
Size
1 KB
Mime Type
text/x-python
Expires
Sun, May 19, 18:12 (2 d)
Engine
blob
Format
Raw Data
Handle
17731685
Attached To
rPHAPI Phabricator API scripts
__init__.py
View Options
# -*- coding: utf-8 -*-
'''
@package getmystuph
@file __init__.py
@copyright BSD
@author Nicolas Richart <nicolas.richart@epfl.ch>
@section COPYRIGHT
Copyright (©) 2015 EPFL (Ecole Polytechnique Fédérale de Lausanne)
SCITAS - Scientific IT and Application Support
This file is part of getmystuph
'''
import
sys
as
__gms_sys
def
export
(
definition
):
"""
Decorator to export definitions from sub-modules to the top-level package
:param definition: definition to be exported
:return: definition
"""
__module
=
__gms_sys
.
modules
[
definition
.
__module__
]
__pkg
=
__gms_sys
.
modules
[
__module
.
__package__
]
__pkg
.
__dict__
[
definition
.
__name__
]
=
definition
if
'__all__'
not
in
__pkg
.
__dict__
:
__pkg
.
__dict__
[
'__all__'
]
=
[]
__pkg
.
__all__
.
append
(
definition
.
__name__
)
return
definition
try
:
from
termcolor
import
colored
except
ImportError
:
# noinspection PyUnusedLocal
def
colored
(
string
,
*
args
,
**
kwargs
):
return
string
__all__
=
[
'colored'
]
from
.
import
directory
# noqa : F401
from
.
import
repo
# noqa : F401
from
.
import
directory_backends
# noqa : F401
from
.
import
repo_backends
# noqa : F401
from
.
import
backends
Event Timeline
Log In to Comment