dotfm

My dotfile manager
git clone git://src.gearsix.net/dotfm
Log | Files | Refs | Atom | README | LICENSE

commit bd6216a7a45e8133d40682f72bb9f73fefe96452
parent 052571b19d79bd6e56942499a93f1864a08684ee
Author: gearsix <gearsix@tuta.io>
Date:   Mon, 27 Sep 2021 11:03:28 +0000

bugfix when opening installed.csv first time

Attempt to os.makedirs incase the directory doesn't exist.

Diffstat:
Msrc/dotfm.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dotfm.py b/src/dotfm.py @@ -166,9 +166,9 @@ def init_createcsv(default_location): os.system('mkdir -p', os.path.dirname(default_location)) os.system('ln -isv', os.path.abspath(location), default_location) else: + os.makedirs(os.path.dirname(location), exist_ok=True) f = open(location, "w") f.close() - def init_loadcsv(location): dotfm_csv = open(location, "r")