add path in python; remove shell script

This commit is contained in:
gac-maloja
2021-11-16 15:38:25 +01:00
parent a116243573
commit dd678b0d57
2 changed files with 7 additions and 4 deletions

View File

@ -7,6 +7,13 @@ parser.add_argument("energy", type=float, help="Target energy in eV")
clargs = parser.parse_args()
import os
import sys
slic_path = os.path.dirname(sys.argv[0]) + "/../slic"
sys.path.append(slic_path)
from time import sleep
from devices.undulator import Undulators

View File

@ -1,4 +0,0 @@
#!/bin/bash
cd $(dirname $0)
PYTHONPATH=../slic ./SetAthosUndEnergy.py $@