Fix script path
This commit is contained in:
1
Makefile
1
Makefile
@@ -18,6 +18,7 @@ install:
|
||||
ifeq ($(USER_ID), 0)
|
||||
@ echo "Installing it system-wide"
|
||||
cp -rf $(LOCAL_PATH) $(INSTALL_PATH)
|
||||
@ sed -i "s|python_script_path=.*|python_script_path=$(INSTALL_PATH)|g" $(INSTALL_PATH)/assets/linux/flatcam-beta
|
||||
ln -sf $(INSTALL_PATH)/assets/linux/flatcam-beta /usr/local/bin
|
||||
cp -f $(ASSEST_PATH)/flatcam-beta.desktop $(APPS_PATH)
|
||||
@ sed -i "s|Exec=.*|Exec=$(INSTALL_PATH)/$(ASSEST_PATH)/flatcam-beta|g" $(APPS_PATH)/flatcam-beta.desktop
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
current_path=$(dirname $0)
|
||||
cd $current_path
|
||||
current_path=$(pwd)
|
||||
cd -
|
||||
|
||||
script_path=$(dirname $current_path)
|
||||
|
||||
python3 $script_path/FlatCAM.py $*
|
||||
script_path=$(readlink -f $0)
|
||||
python_script_path=$(dirname $script_path)/../../
|
||||
python3 $python_script_path/FlatCAM.py $*
|
||||
|
||||
Reference in New Issue
Block a user