mirror of
https://github.com/iKarith/cppo-ng.git
synced 2024-06-13 07:29:30 +00:00
6bb27a028f
I may not have done this 100% "properly"--this is really the first full application thingy I've ever tried to write in Python. I learned circular imports are possible and the error messages are not obvious when you do that. I've also learned that importing a package doesn't necessarily import the modules within that package--if you want that, the package needs to import its submodules into itself. That was not obvious either. It does explain why sometimes you must import subpackages directly and other times importing the package is all you need. This is probably obvious to Python developers who actually work on big projects, but ... I've only ever done single-file scripts before now so it wasn't obvious to me. For now, blocksfree is importing legacy. We don't have enough outside of legacy yet to make the alternative even remotely useful at this time. Eventually though the goal is to stop doing that.
20 lines
857 B
Python
20 lines
857 B
Python
# vim: set tabstop=4 shiftwidth=4 noexpandtab filetype=python:
|
|
|
|
# Copyright (C) 2017 T. Joseph Carter
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU General Public License as published by the
|
|
# Free Software Foundation; either version 2 of the License, or (at your
|
|
# option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
# for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License along
|
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
|
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
from . import legacy, diskimg
|
|
from .logging import log
|