Just do stuff local
This commit is contained in:
6
Utils.py
6
Utils.py
@@ -36,6 +36,9 @@ def is_bundled():
|
|||||||
return getattr(sys, 'frozen', False)
|
return getattr(sys, 'frozen', False)
|
||||||
|
|
||||||
def local_path(path):
|
def local_path(path):
|
||||||
|
# just do stuff here and bail
|
||||||
|
return os.path.join(".", path)
|
||||||
|
|
||||||
if local_path.cached_path is not None:
|
if local_path.cached_path is not None:
|
||||||
return os.path.join(local_path.cached_path, path)
|
return os.path.join(local_path.cached_path, path)
|
||||||
|
|
||||||
@@ -51,6 +54,9 @@ def local_path(path):
|
|||||||
local_path.cached_path = None
|
local_path.cached_path = None
|
||||||
|
|
||||||
def output_path(path):
|
def output_path(path):
|
||||||
|
# just do stuff here and bail
|
||||||
|
return os.path.join(".", path)
|
||||||
|
|
||||||
if output_path.cached_path is not None:
|
if output_path.cached_path is not None:
|
||||||
return os.path.join(output_path.cached_path, path)
|
return os.path.join(output_path.cached_path, path)
|
||||||
|
|
||||||
|
|||||||
@@ -231,8 +231,8 @@ class SpriteSelector(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def official_sprite_dir(self):
|
def official_sprite_dir(self):
|
||||||
# if is_bundled():
|
if is_bundled():
|
||||||
# return output_path(os.path.join("sprites","official"))
|
return output_path(os.path.join("sprites","official"))
|
||||||
return self.local_official_sprite_dir
|
return self.local_official_sprite_dir
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -241,8 +241,8 @@ class SpriteSelector(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unofficial_sprite_dir(self):
|
def unofficial_sprite_dir(self):
|
||||||
# if is_bundled():
|
if is_bundled():
|
||||||
# return output_path(os.path.join("sprites","unofficial"))
|
return output_path(os.path.join("sprites","unofficial"))
|
||||||
return self.local_unofficial_sprite_dir
|
return self.local_unofficial_sprite_dir
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user