Change relative to absolute imports (style)
This commit is contained in:
parent
e94f917226
commit
3394aa56ea
@ -3,8 +3,8 @@ import sys
|
|||||||
import os
|
import os
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
from . import io, util
|
from i3pystatus.core import io, util
|
||||||
from .modules import Module, START_HOOKS
|
from i3pystatus.core.modules import Module, START_HOOKS
|
||||||
|
|
||||||
class Status:
|
class Status:
|
||||||
def __init__(self, standalone=False, interval=1, input_stream=sys.stdin):
|
def __init__(self, standalone=False, interval=1, input_stream=sys.stdin):
|
||||||
|
@ -4,7 +4,7 @@ import runpy
|
|||||||
import sys
|
import sys
|
||||||
import contextlib
|
import contextlib
|
||||||
|
|
||||||
from .render import render_json
|
from i3pystatus.core.render import render_json
|
||||||
|
|
||||||
SEARCHPATH = (
|
SEARCHPATH = (
|
||||||
"~/.i3pystatus.py",
|
"~/.i3pystatus.py",
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from .settings import SettingsBase
|
from i3pystatus.core.settings import SettingsBase
|
||||||
from .threading import Manager
|
from i3pystatus.core.threading import Manager
|
||||||
from .util import convert_position, chain
|
from i3pystatus.core.util import convert_position, chain
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"Module", "AsyncModule", "IntervalModule",
|
"Module", "AsyncModule", "IntervalModule",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
from .util import KeyConstraintDict
|
from i3pystatus.core.util import KeyConstraintDict
|
||||||
from .exceptions import ConfigKeyError, ConfigMissingError
|
from i3pystatus.core.exceptions import ConfigKeyError, ConfigMissingError
|
||||||
|
|
||||||
class SettingsBase:
|
class SettingsBase:
|
||||||
"""
|
"""
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
|
|
||||||
from .manager import Manager
|
from i3pystatus.core.threading.manager import Manager
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
from ..util import partition
|
from i3pystatus.core.util import partition
|
||||||
from . import threads, wrapper
|
from i3pystatus.core.threading import threads, wrapper
|
||||||
|
|
||||||
class Manager:
|
class Manager:
|
||||||
def __init__(self, target_interval):
|
def __init__(self, target_interval):
|
||||||
|
@ -3,8 +3,8 @@ import collections
|
|||||||
import itertools
|
import itertools
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from .exceptions import *
|
from i3pystatus.core.exceptions import *
|
||||||
from .imputil import ClassFinder
|
from i3pystatus.core.imputil import ClassFinder
|
||||||
|
|
||||||
def chain(fun):
|
def chain(fun):
|
||||||
def chained(self, *args, **kwargs):
|
def chained(self, *args, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user