

#Pycharm comment multiple lines code#
Is there some special way I should be exporting/building my code for use, say, on a server somewhere that just has Python3 installed and nothing else?Įdit: So from comments it seems that perhaps my error is thinking I need to mark my subfolders as source root.

But I also assume correct usage of P圜harm would include marking these subfolders as source roots. How do I go about resolving this? I assume as an IDE P圜harm isn't just meant to develop Python projects that can only be run from within P圜harm. If I do so, I either have to modify the code or put everything in the same folder beforehand. This is where my problem lies: say I want to code this program in P圜harm, but then later run it directly from the command line. It will give me an error saying "cannot find reference" If I mark folder1 as source root and then attempt to run import folder1.f1source1 Inside P圜harm, once the subfolders are marked as source root, they basically work as if all their contents were in the main ("src" in the example above) directory. I've started using P圜harm for developing a somewhat large project that has a folder structure that looks like: srcīefore P圜harm I would just use a text editor and the command line, and to import files from subfolders I would just use subfolder.file (or when needing a *.py in the parent folder)
#Pycharm comment multiple lines trial#
I've been trying to figure a solution to this via trial and error along with the docs but I can't seem to identify what I am supposed to do. This is probably a dumb question but I'm also feeling quite frustrated at this point.
