diff options
| author | Karel Kočí <cynerd@email.cz> | 2015-05-06 21:17:23 +0200 |
|---|---|---|
| committer | Karel Kočí <cynerd@email.cz> | 2015-05-06 21:17:23 +0200 |
| commit | ff8c714ac90ba532030a5889ab9529c31a966238 (patch) | |
| tree | 7ddc1c6405c748f81fa232f8a648085ecfb032ba | |
| parent | 6965a073ac6a49838b8353c438b8fcf0504ccc39 (diff) | |
| download | linux-conf-perf-ff8c714ac90ba532030a5889ab9529c31a966238.tar.gz linux-conf-perf-ff8c714ac90ba532030a5889ab9529c31a966238.tar.bz2 linux-conf-perf-ff8c714ac90ba532030a5889ab9529c31a966238.zip | |
Add possibility of calling pahe_set from outside of loop.py
| -rwxr-xr-x | scripts/loop.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/loop.py b/scripts/loop.py index dd5949a..dbf2b70 100755 --- a/scripts/loop.py +++ b/scripts/loop.py @@ -95,9 +95,12 @@ def phase_get(): def phase_set(phs): # TODO - global thr - if thr.term: - return + try: + global thr + if thr.term: + return + except NameError: + pass with open(sf(conf.phase_file), 'w') as f: f.write(phases[phs]) |
