i try to run a program( a stemmer with a tcl file) to read a txt file and save the result into an other txt file. When i run the command through dos-windows terminal it works fine, but when i run this through python terminal with os.system() it returns 1 value and nothing happens..
Here is the code:
>>>import os
>>>os.system('C:\Python27\Lib\site-packages\tclsh.exe -encoding utf-8 C:\Python27\Lib\site-packages\GreekStemmer.tcl in.txt out.txt')
>>>1
I guess ‘1’ means that the command didnt executed succesfully?? And when i run this in dos-terminal it creates the out.txt file with the result.But here not..
On my machine the following doesn’t work, because the backslashes are not interpretted. They indicate special charachters.
You can add an r before the string
or use doubled backslases