Jul-31-2020, 03:32 PM
(Jul-31-2020, 12:45 PM)deanhystad Wrote: If you always do your work under F:\Python\Projects you might want to modify the PYTHONPATH environment variable to include that directory. Then you wouldn't have to modify sys.path directly, it would already contain F:\Python\Projects.
So I've been trying to figure this out but can't seem to get it working. I believe I've added F:\Python\Projects to the PYTHONPATH by going to the Environment Variables under Advanced System Settings (I'm using windows) and under Path adding the directory. But when I call up the path using sys.path it doesn't show. I've tried different things but can't get it to show.
So then I decided to just use sys.path.append and with that the directory does appear but if I want to call the file 'US_data' from F:\Python\Projects\Economic_Data with the from function (from US_data) it doesn't work.
![Wall Wall](https://python-forum.io/images/smilies/eusa_wall.gif)