'Running a Python Exe through Excel / Command Prompt can't find file but running it normally in file explorer works
I have a python script which I have turned into an Exe with the hope of running it through Excel VBA. As the first line, it attempts to load in a csv file with inputs = pd.read_csv("file.csv") Where file.csv is a data file in the same directory. When I turn it into an exe it works when I try to run it through double clicking in File Explorer, however when I tried to run it through Excel using the Shell Command I get the error saying it cannot find the file.csv (FileNotFoundError). I figured out that the same thing occurs when I try to run the exe using Command Prompt. Any ideas why this would be happening?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
