21 lines
1.1 KiB
Diff
21 lines
1.1 KiB
Diff
diff -rupN a/blink/resources.py b/blink/resources.py
|
|
--- a/blink/resources.py 2015-03-17 03:24:06.000000000 -0600
|
|
+++ b/blink/resources.py 2015-04-07 22:52:06.101096413 -0600
|
|
@@ -60,14 +60,7 @@ class Resources(object):
|
|
@classproperty
|
|
def directory(cls):
|
|
if cls._cached_directory is None:
|
|
- if sys.path[0] == '':
|
|
- application_directory = os.path.realpath('') # executed in interactive interpreter
|
|
- else:
|
|
- binary_directory = os.path.dirname(os.path.realpath(sys.argv[0]))
|
|
- if os.path.basename(binary_directory) == 'bin':
|
|
- application_directory = os.path.dirname(binary_directory)
|
|
- else:
|
|
- application_directory = binary_directory
|
|
+ application_directory = '@out@'
|
|
if os.path.exists(os.path.join(application_directory, 'resources', 'blink.ui')):
|
|
cls._cached_directory = os.path.join(application_directory, 'resources').decode(sys.getfilesystemencoding())
|
|
else:
|
|
Binary files a/blink/.resources.py.swp and b/blink/.resources.py.swp differ
|