aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2017-03-16 19:14:25 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2017-03-16 19:14:25 +0100
commit9a523751360e469a89c082d4ba3cde3604d1eb22 (patch)
tree831a3da0cb5e55a19c1fafb4123cdbe98e722ecc
parent46fbf3b91c12bf17f09dabc76939b9c2a96ae759 (diff)
downloaddotfiles-9a523751360e469a89c082d4ba3cde3604d1eb22.tar.gz
dotfiles-9a523751360e469a89c082d4ba3cde3604d1eb22.zip
create .local/bin if needed
-rwxr-xr-xsetup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 631f787..73a5beb 100755
--- a/setup.py
+++ b/setup.py
@@ -43,6 +43,9 @@ def fish_config(quiet):
def dotfile_loc_helper(quiet):
"""Create a symlink of get_dotfiles_location.sh into the path"""
+ if not os.path.exists(home_dir+"/.local/bin"):
+ os.mkdir(home_dir+"/.local/bin")
+
try:
os.symlink(cwd + "/get_dotfiles_location.sh",
home_dir + "/.local/bin/get_dotfiles_location")