From 0a3665483f2cc5a169768b03b8cfd308fe434c2b Mon Sep 17 00:00:00 2001 From: koumakpet Date: Sat, 14 Mar 2020 13:52:59 +0100 Subject: [PATCH] Use os instead of redundant definitions in lib.Path --- dotfiles_install.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dotfiles_install.py b/dotfiles_install.py index 149a3fe..50f680f 100644 --- a/dotfiles_install.py +++ b/dotfiles_install.py @@ -1,4 +1,5 @@ from lib import Input, Print, Install, Path +import os def make_backup(backup_floder): @@ -33,7 +34,7 @@ def personalized_changes(file): def init(symlink): # Get path to files/ floder (contains all dotfiles) - files_dir = Path.join_paths( + files_dir = os.path.join( Path.get_parent(__file__), 'files') # Create optional backup make_backup(files_dir) @@ -42,7 +43,7 @@ def init(symlink): # Make personalized changes to files personalized_changes(file) # Set symlink position ($HOME/filepath) - position = Path.join_paths( + position = os.path.join( Path.get_home(), file.replace(f'{files_dir}/', '')) if symlink: