Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/turtleblocks.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2013-01-17 17:23:50 (GMT)
committer Walter Bender <walter.bender@gmail.com>2013-01-17 17:23:50 (GMT)
commit383de1d3c95423b53eff8d972c2dd7706a37d9dd (patch)
treedfe8b20e2f7a6913bf6e3332ec5d879bf1536e8e /turtleblocks.py
parent1722c6bc5aa95337c4a56f1bd2fbb43318bbeca3 (diff)
using constants for suffix and mimetype
Diffstat (limited to 'turtleblocks.py')
-rwxr-xr-xturtleblocks.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/turtleblocks.py b/turtleblocks.py
index 83fd8a7..df8c436 100755
--- a/turtleblocks.py
+++ b/turtleblocks.py
@@ -48,7 +48,7 @@ sys.argv[1:] = [] # Execution of import gst cannot see '--help' or '-h'
import gettext
from TurtleArt.taconstants import OVERLAY_LAYER, DEFAULT_TURTLE_COLORS, \
- TAB_LAYER
+ TAB_LAYER, SUFFIX
from TurtleArt.tautils import data_to_string, data_from_string, get_save_name
from TurtleArt.tawindow import TurtleArtWindow
from TurtleArt.taexportlogo import save_logo
@@ -79,13 +79,13 @@ class TurtleMain():
gettext.textdomain(bundle_id)
global _
_ = gettext.gettext
- self._HELP_MSG = 'turtleart.py: ' + _('usage is') + '''
- \tturtleart.py
- \tturtleart.py project.ta
- \tturtleart.py --output_png project.ta
- \tturtleart.py -o project
- \tturtleart.py --run project.ta
- \tturtleart.py -r project'''
+ self._HELP_MSG = 'turtleblocks.py: ' + _('usage is') + '''
+ \tturtleblocks.py
+ \tturtleblocks.py project.tb
+ \tturtleblocks.py --output_png project.tb
+ \tturtleblocks.py -o project
+ \tturtleblocks.py --run project.tb
+ \tturtleblocks.py -r project'''
self._init_vars()
self._parse_command_line()
self._ensure_sugar_paths()
@@ -243,8 +243,8 @@ class TurtleMain():
sys.exit()
if self._ta_file is not None:
- if not self._ta_file.endswith(('.ta')):
- self._ta_file += '.ta'
+ if not self._ta_file.endswith(SUFFIX):
+ self._ta_file += '.tb'
if not os.path.exists(self._ta_file):
self._ta_file = os.path.join(self._abspath, self._ta_file)
if not os.path.exists(self._ta_file):