How To Port A Python Application To Linux That Works Fine In Windows
I am having trouble porting a working, Windows Python application to Linux. I am having some problems, because I did not write the code and am just learning Python. I am having tr
Solution 1:
The mixture of Windows and Unix style paths in your error messages makes me think that you may have some filenames that are hard coded or manually created using os specific path separators ('\' or '/'). If you can figure out where the gOptions.inputTf
and gWorkingTfFile
values are assigned you should look into using os.path.join
to help you use the correct paths.
from os.path import join
file = join('A', 'B')
# 'A/B' on unix systems
# 'A\B' on windows systems
Post a Comment for "How To Port A Python Application To Linux That Works Fine In Windows"