-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused code and fix missing term color
- Loading branch information
Showing
5 changed files
with
5 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +0,0 @@ | ||
# -*- coding: utf-8 -*- | ||
# UNCOMMENTING WHAT I THOUGHT SHOULD BE FINE IN AN INIT MODULE SEEMS TO | ||
# BREAK THE IMPORT STRUCTURE. WERID | ||
|
||
#### __init__.py ### | ||
## flake8: noqa | ||
#from __future__ import absolute_import, division, print_function | ||
#from ibeis.init import main_commands | ||
#from ibeis.init import main_helpers | ||
#from ibeis.init import sysres | ||
#import utool | ||
|
||
|
||
#def reassign_submodule_attributes(verbose=True): | ||
# """ | ||
# why reloading all the modules doesnt do this I don't know | ||
# """ | ||
# import sys | ||
# if verbose and '--quiet' not in sys.argv: | ||
# print('dev reimport') | ||
# # Self import | ||
# import ibeis.init | ||
# # Implicit reassignment. | ||
# seen_ = set([]) | ||
# for tup in IMPORT_TUPLES: | ||
# if len(tup) > 2 and tup[2]: | ||
# continue # dont import package names | ||
# submodname, fromimports = tup[0:2] | ||
# submod = getattr(ibeis.init, submodname) | ||
# for attr in dir(submod): | ||
# if attr.startswith('_'): | ||
# continue | ||
# if attr in seen_: | ||
# # This just holds off bad behavior | ||
# # but it does mimic normal util_import behavior | ||
# # which is good | ||
# continue | ||
# seen_.add(attr) | ||
# setattr(ibeis.init, attr, getattr(submod, attr)) | ||
|
||
|
||
#def reload_subs(verbose=True): | ||
# """ Reloads ibeis.init and submodules """ | ||
# rrr(verbose=verbose) | ||
# def fbrrr(*args, **kwargs): | ||
# """ fallback reload """ | ||
# pass | ||
# getattr(main_commands, 'rrr', fbrrr)(verbose=verbose) | ||
# getattr(main_helpers, 'rrr', fbrrr)(verbose=verbose) | ||
# getattr(sysres, 'rrr', fbrrr)(verbose=verbose) | ||
# rrr(verbose=verbose) | ||
# try: | ||
# # hackish way of propogating up the new reloaded submodule attributes | ||
# reassign_submodule_attributes(verbose=verbose) | ||
# except Exception as ex: | ||
# print(ex) | ||
#rrrr = reload_subs | ||
|
||
#IMPORT_TUPLES = [ | ||
# ('main_commands', None), | ||
# ('main_helpers', None), | ||
# ('sysres', None), | ||
#] | ||
#""" | ||
#Regen Command: | ||
# cd /home/joncrall/code/ibeis/ibeis/init | ||
# makeinit.py | ||
#""" | ||
## autogenerated __init__.py for: '/home/joncrall/code/ibeis/ibeis/init' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters