From 72f1c04c57c33ea9145752161b076c3849770166 Mon Sep 17 00:00:00 2001 From: enkore Date: Tue, 1 Oct 2013 13:10:48 +0200 Subject: [PATCH] (PyCharm) --- .idea/.name | 1 + .idea/inspectionProfiles/Project_Default.xml | 7 +++++++ .idea/inspectionProfiles/profiles_settings.xml | 7 +++++++ i3pystatus/core/config.py | 2 ++ i3pystatus/core/imputil.py | 1 + 5 files changed, 18 insertions(+) create mode 100644 .idea/.name create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..c3d7a62 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +i3pystatus \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..4bb2e40 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..3b31283 --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/i3pystatus/core/config.py b/i3pystatus/core/config.py index 8612bf4..5203212 100644 --- a/i3pystatus/core/config.py +++ b/i3pystatus/core/config.py @@ -16,6 +16,7 @@ SEARCHPATH = ( "$XDG_CONFIG_DIRS/i3pystatus.py", ) + class ConfigFinder: def __init__(self, searchpath=SEARCHPATH): self.searchpath = searchpath @@ -38,6 +39,7 @@ class ConfigFinder: raise RuntimeError("Didn't find a config file, tried\n * {mods}".format(mods="\n * ".join(failed))) + class Config: def __init__(self, config_file=None): self.finder = ConfigFinder() diff --git a/i3pystatus/core/imputil.py b/i3pystatus/core/imputil.py index f427360..426a7df 100644 --- a/i3pystatus/core/imputil.py +++ b/i3pystatus/core/imputil.py @@ -2,6 +2,7 @@ import inspect import types from importlib import import_module + class ClassFinder: """Support class to find classes of specific bases in a module"""