Views:
4,386β
Votes: 2β
Tag :
python
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/1206912
Title:
Why does a Python program I write in Windows not work in Linux?
ID:
/2020/01/30/Why-does-a-Python-program-I-write-in-Windows-not-work-in-Linux_
Created:
January 30, 2020
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
As mentioned in other answer try running in Python interpreter before compiling.
It is likely some code will have to be changed. For example if your original program contains:
INPUT_FNAME='\Documents\python_datain\today.csv
It would have to be change to:
INPUT_FNAME='~/Documents/python_datain/today.csv'
If itβs low level python and does such things as moving mouse on screen, closing popup browser windows and adjusting screen brightness and color temperature many changes will be needed with added calls to xdotool
, xrandr
and possibly wmctrl
.