Permalink
Browse files

Small changes to import statements

  • Loading branch information...
riverrun committed Apr 17, 2012
1 parent f8ad64e commit 7a38961b4845f507f01a612d85cb97308ad49a5c
Showing with 4 additions and 3 deletions.
  1. +2 −1 genxword/control.py
  2. +0 −1 genxword/gui.py
  3. +2 −1 install_genxword.sh
View
@@ -19,7 +19,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import argparse, random, sys
+import random, sys
from . import calculate
usage_info = """The word list file contains the words and clues, or just words, that you want in your crossword.
@@ -85,6 +85,7 @@ def savefiles(self, saveformat, name, gtkmode=False):
self.calc.create_files(name, saveformat, gtkmode)
def main():
+ import argparse
parser = argparse.ArgumentParser(description='Crossword generator.', prog='genxword', epilog=usage_info)
parser.add_argument('infile', type=argparse.FileType('r'), help='Name of word list file.')
parser.add_argument('saveformat', help='Save files as A4 pdf (p), letter size pdf (l), png (n) and/or svg (s).')
View
@@ -21,7 +21,6 @@
import os, tempfile
from gi.repository import Gtk, Pango
-from . import calculate
from .control import Genxword
help_text = """genxword-gtk
View
@@ -1,5 +1,6 @@
#!/bin/sh
-# Script to install genxword, which depends on Python (2.7 or 3) and Pycairo.
+# Script to install genxword, which depends on python (2.7 or 3) and pycairo.
+# genxword-gtk also depends on python-gobject (or python-gi)
ERROR_MESSAGE="$(tput bold)$(tput setaf 1)An error occurred. \
Please read the output above to see what the problem is.$(tput sgr0)\n"

0 comments on commit 7a38961

Please sign in to comment.