Комментарии:
Was stuck on this for almost two days with most solutions on stack overflow and chatgpt suggesting to use absolute paths, instead of this type of relative pathing to import stuff.
Finally managed to understand it 😆
thx for this, really helpful
ОтветитьIt works.
Thank you, really help my project :)
your furnuture... your somwhere from east europe =P
ОтветитьGood stuff! I did notice that if I package everything into a wheel, without adding the classes to the __init__.py I was getting ModuleNotFound errors whenever I used submodules from the package.
ОтветитьThanks
Ответитьyou saved me a lot of time with this video. thank you. earned my sub
Ответитьthank man u saved my so much time
ОтветитьReally informative video. Thanks for recording and sharing it.
Ответитьany idea why my vs code isnt importing files from the same directory?
Ответитьvery useful
Ответитьwhat ui is this??? sorry, new to this
ОтветитьVery informative. Thank you very much.
ОтветитьWhen the teacher says add every number from to 100 instead of doing this 1 +2+3
Of a text editor and type this
total = 0
for num in range(101):
total = num + total
print(total)
It will print the correct answer 5050
Very clear explanation Thanks 🎉
Ответитьmost of the time i love python but there's something about the way we do this stuff that really does not compute in my head. the file structure of flask apps in general just doesn't work in my head... i find JS frameworks much more simpler to grasp for god's sake
ОтветитьYooo, what is this terminal program and setup, it looks sexy. Thanks for the video!
ОтветитьDoes this work if the folders are in git repo?
ОтветитьWow, that was actually pretty easy
Thanks you sir
very nice explanation. understood everything very clearly
ОтветитьI am not gonna lie sometimes I get lose in the middle of my code and get confused
Ответитьhow use linting in neovim using pylint and how to avoid import error
Ответитьamazing!!
ОтветитьAs a noob, I've watched this and still have no idea how to add modules, thanks.
ОтветитьThanks bro!
ОтветитьNice explanation, best one yet I've seen on modules!
ОтветитьQuick and simple explanation thank you !
ОтветитьMaking a text based rpg, and really needed a way for stats of enemies to be imported properly. I try not to use videos unless I’m A. Learning something or B. Completely lost and have no idea of the full concept of something.
ОтветитьTutorial on how to setup the environment like yours please
ОтветитьImpressive. To the point content
Ответитьfyi ~ this did not work for me, yes I had my functions file in the same directory as my blend file, but still I had to add the explicit path as follows, then it worked as shown in video
import bpy
import system
sys.path.append('E:\content\working\latest')
from func import testfunc
Thanks for the video and making the effort. I found it quite difficult to see which files you were editing with the editor. I have rewatched a few times, but its blowing my mind.
ОтветитьThank You Sir. You went into great length to explain this concept.
ОтветитьIt's really frustrating how bad your videos are and the fact that they're always first when I search for something. Everything is so arbitrary and all over the place. Not to mention that a package is not a module
ОтветитьWhen i try to run my code which is 2 python file inside a folder with all import rules, i am facing _pycache_ and code does not running. I cannot get input some print ext. How can i fix this.
ОтветитьTo the point, thanks!
ОтветитьExcelent job!
Congrats
According to pyinstaller's official documentation
"
It is not a cross-compiler
- to make a Windows app you run PyInstaller on Windows
- to make a Linux app you run it on Linux, etc
"
Any workaround this?
can you please put module and code(main) at different folder and access module from code
Ответитьwhat is this test editor name?
ОтветитьI have always been told that start imports are bad
ОтветитьThanks a lot!
ОтветитьNice video, I have to learn to use vim like you
Ответитьthanks a lot, solved many problems.
ОтветитьLearned a new thing. "__all__". Thanks a lot.
Ответитьwhat if our module is in another directory? should we amend the system path?
ОтветитьWhat is this ide name ? Is it vim ? May you send config ?
ОтветитьYou're confusing the term module with what is actually a package in python. Any file with a py extension is a 'module' in python. A collection of py files in a directory along with an _init_ file is a package, not a module
ОтветитьThank you, you explained very clearly
Ответить