[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] How to put $HOME in Variable Config?
From: |
Lapo Pieri |
Subject: |
[Discuss-gnuradio] How to put $HOME in Variable Config? |
Date: |
Sat, 6 Jul 2019 17:20:23 +0200 |
User-agent: |
Mutt 1.10.1 (2018-07-13) |
Hi List,
I need to specify a path for the Variable Config block of gnuradio-companion
as "$HOME/.mdr/freq_f0.dat" so I specified "$HOME/.mdr/freq_f0.dat" in
"Config file" field of Variable Config block.
In generated python file appears:
self._freq_config.read('$HOME/.mdr/freq_f0.dat')
that cannot works...
I usually do it in python using somethings like:
env_home=os.environ["HOME"]
cfg_dir=env_home+"/.mdr/"
and pass "cfg_dir+<filename>" where needed
Could you point me out how to do this in gnuradio-companion?
Many thanks!
Lapo
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Discuss-gnuradio] How to put $HOME in Variable Config?,
Lapo Pieri <=