From f944d6ddd005cc7549b494eed0b3b86c2d18ae81 Mon Sep 17 00:00:00 2001 From: Claudio Scafuri <claudio.scafuri@elettra.eu> Date: Fri, 1 Dec 2023 15:46:06 +0100 Subject: [PATCH] portable home dir --- lattgetinfo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lattgetinfo.py b/lattgetinfo.py index 0366aae..2467c0b 100755 --- a/lattgetinfo.py +++ b/lattgetinfo.py @@ -1,9 +1,9 @@ #!/usr/bin/python3 # extract data of lattice elements dnf prepare auxiliary layout info - +import os import LatticeInfo - -latticetfile = "/home/claudio/src/gitlab/dt/machine/lattice/elettra2/srElettra2_9_4_beta.mat" +homedir=os.path.expanduser('~') +latticetfile = homedir + "/src/gitlab/dt/machine/lattice/elettra2/srElettra2_9_4_beta.mat" linfo = LatticeInfo.LatticeInfo(latticetfile, 2.4e9) -- GitLab