Skip to content

Commit

Permalink
Formatted with black
Browse files Browse the repository at this point in the history
  • Loading branch information
Prayag2 committed Apr 11, 2021
1 parent 77217d0 commit b0f52c6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[MASTER]
disable=broad-except, too-many-locals
disable=broad-except, too-many-locals, too-many-branches
2 changes: 1 addition & 1 deletion konsave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# Package is not installed
pass
pass
8 changes: 4 additions & 4 deletions konsave/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
export,
import_profile,
wipe,
log
log,
)
from konsave.consts import (
VERSION,
Expand Down Expand Up @@ -103,15 +103,15 @@ def main():
if not os.path.exists(CONFIG_FILE):
log("Select your desktop environment-")
try:
de = int(input("1. KDE Plasma\n2. Other\n=>"))
desktop_environment = int(input("1. KDE Plasma\n2. Other\n=>"))
except ValueError:
log("Invalid input.")
return
else:
if de == 1:
if desktop_environment == 1:
default_config_path = resource_filename("konsave", "conf_kde.yaml")
shutil.copy(default_config_path, CONFIG_FILE)
elif de == 2:
elif desktop_environment == 2:
default_config_path = resource_filename("konsave", "conf_other.yaml")
shutil.copy(default_config_path, CONFIG_FILE)
else:
Expand Down
2 changes: 1 addition & 1 deletion konsave/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
list_of_profiles = os.listdir(PROFILES_DIR)
length_of_lop = len(list_of_profiles)

VERSION = __version__
VERSION = __version__

0 comments on commit b0f52c6

Please sign in to comment.