Search found 2 matches
- Wed Apr 21, 2021 9:35 am
- Forum: General Discussion and Questions
- Topic: Can't import from directory
- Replies: 3
- Views: 1928
Re: Can't import from directory
Hey Roberthh, thanks for your reply. You have to add the directory name "Spielwiesen" to sys.path. sys.path.append("Spielwiesen") I am going to try this and get back to this if I can confirm that this worked. Also: the path component separator is "/" not "\". Hm I guess this is caused by the PyCharm...
- Tue Apr 20, 2021 10:52 pm
- Forum: General Discussion and Questions
- Topic: Can't import from directory
- Replies: 3
- Views: 1928
Can't import from directory
I am having issues importing python files from within a directory. I have a boot.py file: from Spielwiesen import wifi print("imported") "Spielwiesen" is a directory containing example code snippets for if i forget something from time to time. Inside of Spielwiesen is the file "wifi.py". If I run th...