fix display of help dialog in snap

This commit is contained in:
Adnan Hodzic 2020-01-23 07:12:04 +01:00
parent 5aca2c5558
commit 9f1bbc1778
1 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,10 @@ def main(monitor, live, daemon, install, log):
print("\n-----\n")
# ToDo: add option what to run depending on the env
s.call(["python3", "auto-cpufreq", "--help"])
if os.getenv('PKG_MARKER') == "SNAP":
s.call(["auto-cpufreq", "--help"])
else:
s.call(["python3", "auto-cpufreq", "--help"])
#s.call([tool_run, " --help"])
footer(79)
else: