1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-09 03:39:15 +00:00

correctly split action arguments

This commit is contained in:
deadc0de6
2018-09-24 20:23:48 +02:00
parent 622fe71f06
commit f5c9d494e7

View File

@@ -7,6 +7,7 @@ yaml config file manager
import yaml import yaml
import os import os
import shlex
# local import # local import
from dotdrop.dotfile import Dotfile from dotdrop.dotfile import Dotfile
@@ -259,7 +260,7 @@ class Cfg:
self.key_actions_post: [], self.key_actions_post: [],
} }
for line in entries: for line in entries:
fields = line.split(' ') fields = shlex.split(line)
entry = fields[0] entry = fields[0]
args = [] args = []
if len(fields) > 1: if len(fields) > 1: