Skip to content

Commit

Permalink
bugy#69 updated tools to consider changed project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Jun 17, 2017
1 parent dbde047 commit dabe092
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions tools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import shutil
import zipfile

import tools.init
import init

BUILD_FOLDER = 'build'

Expand Down Expand Up @@ -44,11 +44,12 @@ def get_files(self):


build_info = BuildInfo()
build_info.include(os.path.join('**', '*.py'))
build_info.include('logging.json')
build_info.include('launcher.py')
build_info.include(os.path.join('src', '**', '*.py'))
build_info.include(os.path.join('conf', 'logging.json'))
build_info.include(os.path.join('web', '**'))
build_info.include(os.path.join('conf', 'runners'))
build_info.exclude('tests')
build_info.exclude(os.path.join('src', 'tests'))
build_info.exclude('tools')
build_info.exclude('samples')
build_info.exclude(BUILD_FOLDER)
Expand All @@ -61,4 +62,4 @@ def get_files(self):
for file in build_info.get_files():
zip.write(file)

tools.init.prepare_project('')
init.prepare_project('')
2 changes: 1 addition & 1 deletion tools/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import urllib.request
from html.parser import HTMLParser

sys.path.insert(1, os.getcwd())
sys.path.insert(1, os.path.join(sys.path[0], '..', 'src'))

from utils import file_utils

Expand Down

0 comments on commit dabe092

Please sign in to comment.