فهرست منبع

toontown engine default path in mac os

Fabian Peter Hammerle 8 سال پیش
والد
کامیت
8176ad83bf
3فایلهای تغییر یافته به همراه10 افزوده شده و 3 حذف شده
  1. 2 1
      scripts/tooncher
  2. 2 2
      setup.py
  3. 6 0
      tooncher/__init__.py

+ 2 - 1
scripts/tooncher

@@ -51,10 +51,11 @@ def _init_argparser():
         '-e',
         metavar='path',
         dest='engine_path',
-        default=None,
+        default=tooncher.TOONTOWN_ENGINE_DEFAULT_PATH,
         help='\n'.join([
             'path to toontown engine.',
             'this overrides the one specified in config file',
+            '(default: %(default)s)',
         ]),
     )
     argparser.add_argument(

+ 2 - 2
setup.py

@@ -7,12 +7,12 @@ import glob
 setup(
     name = 'tooncher',
     packages = ['tooncher'],
-    version = '0.1.2',
+    version = '0.2.0',
     description = "automates toontown rewritten's login process",
     author = 'Fabian Peter Hammerle',
     author_email = 'fabian.hammerle@gmail.com',
     url = 'https://github.com/fphammerle/tooncher',
-    download_url = 'https://github.com/fphammerle/tooncher/tarball/0.1.2',
+    download_url = 'https://github.com/fphammerle/tooncher/tarball/0.2.0',
     keywords = ['game', 'launcher', 'toontown rewritten', 'ttr'],
     classifiers = [],
     scripts = glob.glob('scripts/*'),

+ 6 - 0
tooncher/__init__.py

@@ -20,8 +20,14 @@ if sys.platform == 'darwin':
         os.path.expanduser('~'), 'Library',
         'Application Support', 'Toontown Rewritten',
     )
+    TOONTOWN_ENGINE_DEFAULT_PATH = os.path.join(
+        TOONTOWN_LIBRARY_PATH,
+        'Toontown Rewritten',
+    )
 else:
     TOONTOWN_LIBRARY_PATH = None
+    TOONTOWN_ENGINE_DEFAULT_PATH = None
+
 
 def start_engine(engine_path, gameserver, playcookie, **kwargs):
     env = {