mirror of
https://github.com/KevinMidboe/knowit_julekalender-2017.git
synced 2025-10-29 17:50:18 +00:00
12 lines
285 B
Python
Executable File
12 lines
285 B
Python
Executable File
#!/usr/bin/env python3.6
|
|
import subprocess, os
|
|
|
|
def main():
|
|
path = os.path.dirname(os.path.realpath(__file__)) + '/bilde.png'
|
|
result = subprocess.run(['zsteg', path], stdout=subprocess.PIPE)
|
|
decode = result.stdout.decode('utf-8')
|
|
|
|
return decode
|
|
|
|
if __name__ == '__main__':
|
|
main() |