-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed pyinstaller for Windows; Default font;
- Loading branch information
1 parent
7e2b05f
commit 0d8e91b
Showing
13 changed files
with
159 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
import sys | ||
import os | ||
|
||
from PyQt5.QtCore import * | ||
from PyQt5.QtGui import * | ||
from PyQt5.QtWidgets import * | ||
|
||
from . import monitor | ||
from JustChord.gui import monitor | ||
|
||
|
||
def debug(func): | ||
def foo(*args, **kwargs): | ||
print(func.__name__, args, kwargs) | ||
return func(*args, **kwargs) | ||
|
||
return foo | ||
|
||
|
||
# @debug | ||
def resource_path(path): # convert path for pyinstaller | ||
path = path.replace('/', os.sep) | ||
if hasattr(sys, '_MEIPASS'): | ||
# print('has,', os.path.join(sys._MEIPASS, path)) | ||
return os.path.join(sys._MEIPASS, path) | ||
# print('no,', os.path.join(os.path.abspath('.'), path)) | ||
return os.path.join(os.path.abspath('.'), path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.