First of all I'd just like to say I am very new to python, but I was told this would be my best option so here I am asking for help because I'm more than willing to learn.
I'm trying to write a python script to run on linux, to automate a process whereby an '.exe' application is launched in wine and used to decompress a '.cmp' file.
So far, the code I have launches the '.exe' application to run on wine. My problem is not knowing how to call the '.cmp' file to the application to be decompressed. I would really appreciate some help with ideas on how to achieve this. Below is my code. I am also attaching a screenshot of the application once it's launched in wine.
- Code: Select all
# DeCmpTool.exe is the application used for decompression
# USRINF_20130522.cmp is the compressed file. A compressed file is generated daily.
filename = "Z:\home\roger\Shared\Scripts\VLR\USRINF_20130522.cmp"
retcode = subprocess.call(["wine", "DeCmpTool.exe"])
# I need part of the script that would allow the app to call for the cmp file and decompress it.