Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3 update #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""
pip package setup
"""
"""pip package setup"""

from setuptools import setup, find_packages
from wooqi import __version__
Expand Down
5 changes: 3 additions & 2 deletions wooqi/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def init_command(args):
project_name = args[1]
print(">>> Create a new project '{}' in '{}' ? (y/n)".format(
project_name, os.path.abspath(".")))
answer = raw_input()
answer = input()
if answer == 'y':
print(">>> Creating project...")
project_path = os.path.abspath(project_name)
Expand All @@ -40,7 +40,8 @@ def init_command(args):
def ignore_func(d, files):
return [f for f in files if f == '__pycache__' or f.endswith('.pyc')]

shutil.copytree(project_template_path, project_path, ignore=ignore_func)
shutil.copytree(project_template_path,
project_path, ignore=ignore_func)
except OSError as e:
print("Directory not copied. Error: {}".format(e))
print(">>> Project initialization complete.")
Expand Down