Skip to content

Commit

Permalink
Project internals refactored.
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborsimon committed Jul 8, 2016
1 parent 9e3c7e3 commit c561716
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 12 deletions.
Empty file added projects/gui/__init__.py
Empty file.
File renamed without changes.
6 changes: 4 additions & 2 deletions projects/gui.py → projects/gui/gui.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import urwid
import pydoc
from projects.project_selector import ProjectSelector

import urwid

from projects import doc_generator
from projects.gui.project_selector import ProjectSelector


def select_project(project_list, path_callback):
Expand Down
File renamed without changes.
14 changes: 8 additions & 6 deletions projects/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@
# -*- coding: utf-8 -*-

import os
import pydoc
import subprocess
import sys

from pkg_resources import get_distribution
from termcolor import colored

from projects import config
from projects import gui
from projects import paths
from projects import projectfile
import gui
import subprocess
from termcolor import colored
import pydoc
from projects import doc_generator
from projects.gui import doc_generator

from pkg_resources import get_distribution
__version__ = get_distribution('projects').version

help_text = '''\
Expand Down
2 changes: 1 addition & 1 deletion test/project_selector/test_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from unittest import TestCase

from projects import project_selector
from projects.gui import project_selector


class Filtering(TestCase):
Expand Down
2 changes: 1 addition & 1 deletion test/project_selector/test_project_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from unittest import TestCase

from projects import project_selector
from projects.gui import project_selector


class ProjectSelectorBaseCases(TestCase):
Expand Down
2 changes: 1 addition & 1 deletion test/project_selector/test_string_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from unittest import TestCase

from projects import project_selector
from projects.gui import project_selector


class Rendering(TestCase):
Expand Down
2 changes: 1 addition & 1 deletion test/projectfile/test_doc_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
except ImportError:
builtin_module = 'builtins'

from projects.doc_generator import generate_doc, generate_markdown
from projects.gui.doc_generator import generate_doc, generate_markdown


class DocGeneratorTests(TestCase):
Expand Down

0 comments on commit c561716

Please sign in to comment.