add path in python; remove shell script
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
cd $(dirname $0)
|
||||
PYTHONPATH=../slic ./SetAthosUndEnergy.py $@
|
||||
|
Reference in New Issue
Block a user