wistful  committed 8a4e9b4

change log and config locate

  • Participants
  • Parent commits 2fbd842

Comments (0)

Files changed (1)


     from gi.repository import Nautilus as nautilus
     from gi.repository import GObject
-SETTINGS_PATH = os.path.expanduser('~/nautilus-opener.conf')
-LOG_PATH = os.path.expanduser('~/nautilus-opener.log')
+if not os.path.exists(os.path.expanduser('~/.config/nautilus-opener')):
+    os.mkdir(os.path.expanduser('~/.config/nautilus-opener'))
+SETTINGS_PATH = os.path.expanduser('~/.config/nautilus-opener/nautilus-opener.conf')
+LOG_PATH = os.path.expanduser('~/.config/nautilus-opener/nautilus-opener.log')
 def logger(message):
 def error_wrapper(fn):
-    catch Exceptions and write it to log file
+    catch Exceptions and write it to the log file
     name = fn.__name__