Jun-12-2019, 05:56 AM
Well,
I can't figure it out. Tried 2 machines. Python scripts will work just fine in the CMD window as far as calculations and printing to screen, etc...
However, when I try to do anything with files in the CMD window, the script appears to parse fine - but won't produce files - like text files - even when I use *with*. But the scripts will work fully and make .txt files if I run them from the Shell.
I wonder....is this the problem?
In CMD
In Python Shell
There are missing paths in the CMD and an empty path. That's odd. And How would I fix that? path has always vexed me.
I can't figure it out. Tried 2 machines. Python scripts will work just fine in the CMD window as far as calculations and printing to screen, etc...
However, when I try to do anything with files in the CMD window, the script appears to parse fine - but won't produce files - like text files - even when I use *with*. But the scripts will work fully and make .txt files if I run them from the Shell.
I wonder....is this the problem?
In CMD
Quote:>>> sys.path
['', 'C:\\Users\\Chris\\AppData\\Local\\Programs\\Python\\Python37-32\\python37.zip',
'C:\\Users\\Chris\\AppData\\Local\\Programs\\Python\\Python37-32\\DLLs',
'C:\\Users\\Chris\\AppData\\Local\\Programs\\Python\\Python37-32\\lib',
'C:\\Users\\Chris\\AppData\\Local\\Programs\\Python\\Python37-32',
'C:\\Users\\Chris\\AppData\\Local\\Programs\\Python\\Python37-32\\lib\\site-packages']
>>>
In Python Shell
Quote:>>> sys.path
['C:\\Users\\Chris\\Desktop\\GELOE\\Excel Test',
'C:\\Users\\Chris\\AppData\\Local\\Programs\\Python\\Python37-32\\Lib\\idlelib',
'C:\\Users\\Chris\\AppData\\Local\\Programs\\Python\\Python37-32\\python37.zip',
'C:\\Users\\Chris\\AppData\\Local\\Programs\\Python\\Python37-32\\DLLs',
'C:\\Users\\Chris\\AppData\\Local\\Programs\\Python\\Python37-32\\lib',
'C:\\Users\\Chris\\AppData\\Local\\Programs\\Python\\Python37-32',
'C:\\Users\\Chris\\AppData\\Local\\Programs\\Python\\Python37-32\\lib\\site-packages']
>>>
There are missing paths in the CMD and an empty path. That's odd. And How would I fix that? path has always vexed me.