mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-12 09:41:18 +02:00
commit
538569921e
3 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
# Backup the config file if we're upgrading
|
# Backup the config file if we're upgrading
|
||||||
if "upgrade" in sys.argv:
|
if "upgrade" in sys.argv:
|
||||||
|
|
|
@ -10,7 +10,7 @@ import configparser
|
||||||
from i18n import _
|
from i18n import _
|
||||||
|
|
||||||
# Get the absolute filepath
|
# Get the absolute filepath
|
||||||
config_path = os.path.dirname("/etc/howdy") + "/config.ini"
|
config_path = os.path.dirname("/etc/howdy/") + "/config.ini"
|
||||||
|
|
||||||
# Read config from disk
|
# Read config from disk
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
|
|
|
@ -9,7 +9,7 @@ import fileinput
|
||||||
from i18n import _
|
from i18n import _
|
||||||
|
|
||||||
# Get the absolute filepath
|
# Get the absolute filepath
|
||||||
config_path = os.path.dirname("/etc/howdy") + "/config.ini"
|
config_path = os.path.dirname("/etc/howdy/") + "/config.ini"
|
||||||
|
|
||||||
# Check if enough arguments have been passed
|
# Check if enough arguments have been passed
|
||||||
if len(builtins.howdy_args.arguments) < 2:
|
if len(builtins.howdy_args.arguments) < 2:
|
||||||
|
|
Loading…
Reference in a new issue