From b8e4306a278b7acdf43745ef9d87a2d448bd2d48 Mon Sep 17 00:00:00 2001 From: Alberto Sottile Date: Tue, 5 Mar 2019 12:11:48 +0100 Subject: [PATCH] setuptools: change resources path --- .travis.yml | 2 +- GNUmakefile | 18 +++++++++--------- MANIFEST.in | 10 +++++----- appdmg.py | 4 ++-- buildPy2app.py | 6 +++--- buildPy2exe.py | 14 +++++++------- setup.py | 2 +- {resources => syncplay/resources}/accept.png | Bin .../resources}/application_get.png | Bin .../resources}/arrow_refresh.png | Bin .../resources}/arrow_switch.png | Bin .../resources}/arrow_undo.png | Bin .../resources}/bullet_right_grey.png | Bin .../resources}/chevrons_right.png | Bin .../resources}/clock_go.png | Bin {resources => syncplay/resources}/cog.png | Bin .../resources}/cog_delete.png | Bin .../resources}/comments.png | Bin .../resources}/control_pause_blue.png | Bin .../resources}/control_play_blue.png | Bin {resources => syncplay/resources}/cross.png | Bin .../resources}/cross_checkbox.png | Bin {resources => syncplay/resources}/delete.png | Bin {resources => syncplay/resources}/door_in.png | Bin .../resources}/email_go.png | Bin .../resources}/empty_checkbox.png | Bin {resources => syncplay/resources}/error.png | Bin {resources => syncplay/resources}/eye.png | Bin .../resources}/film_add.png | Bin .../resources}/film_edit.png | Bin .../resources}/film_folder_edit.png | Bin {resources => syncplay/resources}/film_go.png | Bin .../resources}/film_link.png | Bin .../resources}/folder_explore.png | Bin .../resources}/folder_film.png | Bin {resources => syncplay/resources}/help.png | Bin .../hicolor/128x128/apps/syncplay.png | Bin .../hicolor/16x16/apps/syncplay.png | Bin .../hicolor/24x24/apps/syncplay.png | Bin .../hicolor/256x256/apps/syncplay.png | Bin .../hicolor/32x32/apps/syncplay.png | Bin .../hicolor/48x48/apps/syncplay.png | Bin .../hicolor/64x64/apps/syncplay.png | Bin .../hicolor/96x96/apps/syncplay.png | Bin {resources => syncplay/resources}/house.png | Bin {resources => syncplay/resources}/icon.icns | Bin {resources => syncplay/resources}/icon.ico | Bin {resources => syncplay/resources}/key_go.png | Bin {resources => syncplay/resources}/license.rtf | 0 {resources => syncplay/resources}/lock.png | Bin .../resources}/lock_green.png | Bin .../resources}/lock_green_dialog.png | Bin .../resources}/lock_open.png | Bin .../resources}/lua/intf/syncplay.lua | 0 .../resources}/macOS_dmg_bkg.tiff | Bin .../resources}/macOS_readme.pdf | Bin .../resources}/man/changelog.md | 0 {resources => syncplay/resources}/mpc-be.png | Bin {resources => syncplay/resources}/mpc-hc.png | Bin .../resources}/mpc-hc64.png | Bin {resources => syncplay/resources}/mplayer.png | Bin {resources => syncplay/resources}/mpv.png | Bin .../resources}/page_white_key.png | Bin .../resources}/shield_add.png | Bin .../resources}/shield_edit.png | Bin {resources => syncplay/resources}/spinner.mng | Bin .../resources}/syncplay-server.desktop | 0 .../resources}/syncplay.desktop | 0 .../resources}/syncplay.png | Bin .../resources}/syncplayintf.lua | 0 .../resources}/table_refresh.png | Bin .../resources}/third-party-notices.rtf | 0 {resources => syncplay/resources}/tick.png | Bin .../resources}/tick_checkbox.png | Bin .../resources}/timeline_marker.png | Bin .../resources}/user_comment.png | Bin .../resources}/user_key.png | Bin {resources => syncplay/resources}/vlc.png | Bin .../resources}/world_add.png | Bin .../resources}/world_explore.png | Bin .../resources}/world_go.png | Bin syncplay/utils.py | 4 ++-- 82 files changed, 30 insertions(+), 30 deletions(-) rename {resources => syncplay/resources}/accept.png (100%) rename {resources => syncplay/resources}/application_get.png (100%) rename {resources => syncplay/resources}/arrow_refresh.png (100%) rename {resources => syncplay/resources}/arrow_switch.png (100%) rename {resources => syncplay/resources}/arrow_undo.png (100%) rename {resources => syncplay/resources}/bullet_right_grey.png (100%) rename {resources => syncplay/resources}/chevrons_right.png (100%) rename {resources => syncplay/resources}/clock_go.png (100%) rename {resources => syncplay/resources}/cog.png (100%) rename {resources => syncplay/resources}/cog_delete.png (100%) rename {resources => syncplay/resources}/comments.png (100%) rename {resources => syncplay/resources}/control_pause_blue.png (100%) rename {resources => syncplay/resources}/control_play_blue.png (100%) rename {resources => syncplay/resources}/cross.png (100%) rename {resources => syncplay/resources}/cross_checkbox.png (100%) rename {resources => syncplay/resources}/delete.png (100%) rename {resources => syncplay/resources}/door_in.png (100%) rename {resources => syncplay/resources}/email_go.png (100%) rename {resources => syncplay/resources}/empty_checkbox.png (100%) rename {resources => syncplay/resources}/error.png (100%) rename {resources => syncplay/resources}/eye.png (100%) rename {resources => syncplay/resources}/film_add.png (100%) rename {resources => syncplay/resources}/film_edit.png (100%) rename {resources => syncplay/resources}/film_folder_edit.png (100%) rename {resources => syncplay/resources}/film_go.png (100%) rename {resources => syncplay/resources}/film_link.png (100%) rename {resources => syncplay/resources}/folder_explore.png (100%) rename {resources => syncplay/resources}/folder_film.png (100%) rename {resources => syncplay/resources}/help.png (100%) rename {resources => syncplay/resources}/hicolor/128x128/apps/syncplay.png (100%) rename {resources => syncplay/resources}/hicolor/16x16/apps/syncplay.png (100%) rename {resources => syncplay/resources}/hicolor/24x24/apps/syncplay.png (100%) rename {resources => syncplay/resources}/hicolor/256x256/apps/syncplay.png (100%) rename {resources => syncplay/resources}/hicolor/32x32/apps/syncplay.png (100%) rename {resources => syncplay/resources}/hicolor/48x48/apps/syncplay.png (100%) rename {resources => syncplay/resources}/hicolor/64x64/apps/syncplay.png (100%) rename {resources => syncplay/resources}/hicolor/96x96/apps/syncplay.png (100%) rename {resources => syncplay/resources}/house.png (100%) rename {resources => syncplay/resources}/icon.icns (100%) rename {resources => syncplay/resources}/icon.ico (100%) rename {resources => syncplay/resources}/key_go.png (100%) rename {resources => syncplay/resources}/license.rtf (100%) rename {resources => syncplay/resources}/lock.png (100%) rename {resources => syncplay/resources}/lock_green.png (100%) rename {resources => syncplay/resources}/lock_green_dialog.png (100%) rename {resources => syncplay/resources}/lock_open.png (100%) rename {resources => syncplay/resources}/lua/intf/syncplay.lua (100%) rename {resources => syncplay/resources}/macOS_dmg_bkg.tiff (100%) rename {resources => syncplay/resources}/macOS_readme.pdf (100%) rename {resources => syncplay/resources}/man/changelog.md (100%) rename {resources => syncplay/resources}/mpc-be.png (100%) rename {resources => syncplay/resources}/mpc-hc.png (100%) rename {resources => syncplay/resources}/mpc-hc64.png (100%) rename {resources => syncplay/resources}/mplayer.png (100%) rename {resources => syncplay/resources}/mpv.png (100%) rename {resources => syncplay/resources}/page_white_key.png (100%) rename {resources => syncplay/resources}/shield_add.png (100%) rename {resources => syncplay/resources}/shield_edit.png (100%) rename {resources => syncplay/resources}/spinner.mng (100%) rename {resources => syncplay/resources}/syncplay-server.desktop (100%) rename {resources => syncplay/resources}/syncplay.desktop (100%) rename {resources => syncplay/resources}/syncplay.png (100%) rename {resources => syncplay/resources}/syncplayintf.lua (100%) rename {resources => syncplay/resources}/table_refresh.png (100%) rename {resources => syncplay/resources}/third-party-notices.rtf (100%) rename {resources => syncplay/resources}/tick.png (100%) rename {resources => syncplay/resources}/tick_checkbox.png (100%) rename {resources => syncplay/resources}/timeline_marker.png (100%) rename {resources => syncplay/resources}/user_comment.png (100%) rename {resources => syncplay/resources}/user_key.png (100%) rename {resources => syncplay/resources}/vlc.png (100%) rename {resources => syncplay/resources}/world_add.png (100%) rename {resources => syncplay/resources}/world_explore.png (100%) rename {resources => syncplay/resources}/world_go.png (100%) diff --git a/.travis.yml b/.travis.yml index fd8ec48..cf4d283 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ install: before_deploy: - pip3 install dmgbuild - mkdir dist_dmg -- mv resources/macOS_readme.pdf resources/.macOS_readme.pdf +- mv syncplay/resources/macOS_readme.pdf syncplay/resources/.macOS_readme.pdf - export VER="$(cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')" - dmgbuild -s appdmg.py "Syncplay" dist_dmg/Syncplay_${VER}.dmg - python3 bintray_version.py diff --git a/GNUmakefile b/GNUmakefile index 6936f70..d68b634 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -35,18 +35,18 @@ endif SHARE_PATH = ${DESTDIR}${PREFIX}/share common: - -mkdir -p $(LIB_PATH)/syncplay/resources/lua/intf + -mkdir -p $(LIB_PATH)/syncplay/syncplay/resources/lua/intf -mkdir -p $(APP_SHORTCUT_PATH) -mkdir -p $(SHARE_PATH)/app-install/icons -mkdir -p $(SHARE_PATH)/pixmaps/ cp -r syncplay $(LIB_PATH)/syncplay/ chmod 755 $(LIB_PATH)/syncplay/ - cp -r resources/hicolor $(SHARE_PATH)/icons/ - cp -r resources/*.png $(LIB_PATH)/syncplay/resources/ - cp -r resources/*.lua $(LIB_PATH)/syncplay/resources/ - cp -r resources/lua/intf/*.lua $(LIB_PATH)/syncplay/resources/lua/intf/ - cp resources/hicolor/48x48/apps/syncplay.png $(SHARE_PATH)/app-install/icons/ - cp resources/hicolor/48x48/apps/syncplay.png $(SHARE_PATH)/pixmaps/ + cp -r syncplay/resources/hicolor $(SHARE_PATH)/icons/ + cp -r syncplay/resources/*.png $(LIB_PATH)/syncplay/syncplay/resources/ + cp -r syncplay/resources/*.lua $(LIB_PATH)/syncplay/syncplay/resources/ + cp -r syncplay/resources/lua/intf/*.lua $(LIB_PATH)/syncplay/syncplay/resources/lua/intf/ + cp syncplay/resources/hicolor/48x48/apps/syncplay.png $(SHARE_PATH)/app-install/icons/ + cp syncplay/resources/hicolor/48x48/apps/syncplay.png $(SHARE_PATH)/pixmaps/ u-common: -rm -rf $(LIB_PATH)/syncplay @@ -60,7 +60,7 @@ client: sed -i -e '/# libpath/ a\import site\nsite.addsitedir\("${PREFIX}/lib/syncplay"\)' $(BIN_PATH)/syncplay chmod 755 $(BIN_PATH)/syncplay cp syncplayClient.py $(LIB_PATH)/syncplay/ - cp resources/syncplay.desktop $(APP_SHORTCUT_PATH)/ + cp syncplay/resources/syncplay.desktop $(APP_SHORTCUT_PATH)/ ifeq ($(SINGLE_USER),false) chmod 755 $(APP_SHORTCUT_PATH)/syncplay.desktop @@ -79,7 +79,7 @@ server: sed -i -e '/# libpath/ a\import site\nsite.addsitedir\("${PREFIX}/lib/syncplay"\)' $(BIN_PATH)/syncplay-server chmod 755 $(BIN_PATH)/syncplay-server cp syncplayServer.py $(LIB_PATH)/syncplay/ - cp resources/syncplay-server.desktop $(APP_SHORTCUT_PATH)/ + cp syncplay/resources/syncplay-server.desktop $(APP_SHORTCUT_PATH)/ ifeq ($(SINGLE_USER),false) chmod 755 $(APP_SHORTCUT_PATH)/syncplay-server.desktop diff --git a/MANIFEST.in b/MANIFEST.in index ab03c0b..f3809a6 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,6 @@ include LICENSE -include resources/*.png -include resources/*.mng -include resources/*.lua -include resources/*.rtf -include resources/lua/intf/*.lua \ No newline at end of file +include syncplay/resources/*.png +include syncplay/resources/*.mng +include syncplay/resources/*.lua +include syncplay/resources/*.rtf +include syncplay/resources/lua/intf/*.lua \ No newline at end of file diff --git a/appdmg.py b/appdmg.py index 8c23084..2c08dd9 100755 --- a/appdmg.py +++ b/appdmg.py @@ -31,7 +31,7 @@ size = defines.get('size', None) # Files to include files = [ application, - 'resources/.macOS_readme.pdf' + 'syncplay/resources/.macOS_readme.pdf' ] # Symlinks to create @@ -78,7 +78,7 @@ icon_locations = { # # Other color components may be expressed either in the range 0 to 1, or # as percentages (e.g. 60% is equivalent to 0.6). -background = 'resources/macOS_dmg_bkg.tiff' +background = 'syncplay/resources/macOS_dmg_bkg.tiff' show_status_bar = False show_tab_view = False diff --git a/buildPy2app.py b/buildPy2app.py index 4e921c9..68e6466 100755 --- a/buildPy2app.py +++ b/buildPy2app.py @@ -11,11 +11,11 @@ import syncplay APP = ['syncplayClient.py'] DATA_FILES = [ - ('resources', glob('resources/*.png') + glob('resources/*.rtf') + glob('resources/*.lua')), - ('resources/lua/intf', glob('resources/lua/intf/*.lua')) + ('resources', glob('syncplay/resources/*.png') + glob('syncplay/resources/*.rtf') + glob('syncplay/resources/*.lua')), + ('resources/lua/intf', glob('syncplay/resources/lua/intf/*.lua')) ] OPTIONS = { - 'iconfile': 'resources/icon.icns', + 'iconfile': 'syncplay/resources/icon.icns', 'extra_scripts': 'syncplayServer.py', 'includes': {'PySide2.QtCore', 'PySide2.QtUiTools', 'PySide2.QtGui', 'PySide2.QtWidgets', 'certifi', 'cffi'}, 'excludes': {'PySide', 'PySide.QtCore', 'PySide.QtUiTools', 'PySide.QtGui'}, diff --git a/buildPy2exe.py b/buildPy2exe.py index de662c3..e8254eb 100644 --- a/buildPy2exe.py +++ b/buildPy2exe.py @@ -691,14 +691,14 @@ guiIcons = [ 'resources/world_add.png', 'resources/film_add.png', 'resources/delete.png', 'resources/spinner.mng' ] resources = [ - "resources/icon.ico", - "resources/syncplay.png", - "resources/syncplayintf.lua", - "resources/license.rtf", - "resources/third-party-notices.rtf" + "syncplay/resources/icon.ico", + "syncplay/resources/syncplay.png", + "syncplay/resources/syncplayintf.lua", + "syncplay/resources/license.rtf", + "syncplay/resources/third-party-notices.rtf" ] resources.extend(guiIcons) -intf_resources = ["resources/lua/intf/syncplay.lua"] +intf_resources = ["syncplay/resources/lua/intf/syncplay.lua"] qt_plugins = ['platforms\\qwindows.dll', 'styles\\qwindowsvistastyle.dll'] @@ -714,7 +714,7 @@ info = dict( common_info, windows=[{ "script": "syncplayClient.py", - "icon_resources": [(1, "resources\\icon.ico")], + "icon_resources": [(1, "syncplay\\resources\\icon.ico")], 'dest_base': "Syncplay"}, ], console=['syncplayServer.py'], diff --git a/setup.py b/setup.py index 12b7429..2c5d5c2 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( - name="syncplay-distutil-test-3", + name="syncplay-setuptools-test-3", version=syncplay_version, author="Syncplay", author_email="dev@syncplay.pl", diff --git a/resources/accept.png b/syncplay/resources/accept.png similarity index 100% rename from resources/accept.png rename to syncplay/resources/accept.png diff --git a/resources/application_get.png b/syncplay/resources/application_get.png similarity index 100% rename from resources/application_get.png rename to syncplay/resources/application_get.png diff --git a/resources/arrow_refresh.png b/syncplay/resources/arrow_refresh.png similarity index 100% rename from resources/arrow_refresh.png rename to syncplay/resources/arrow_refresh.png diff --git a/resources/arrow_switch.png b/syncplay/resources/arrow_switch.png similarity index 100% rename from resources/arrow_switch.png rename to syncplay/resources/arrow_switch.png diff --git a/resources/arrow_undo.png b/syncplay/resources/arrow_undo.png similarity index 100% rename from resources/arrow_undo.png rename to syncplay/resources/arrow_undo.png diff --git a/resources/bullet_right_grey.png b/syncplay/resources/bullet_right_grey.png similarity index 100% rename from resources/bullet_right_grey.png rename to syncplay/resources/bullet_right_grey.png diff --git a/resources/chevrons_right.png b/syncplay/resources/chevrons_right.png similarity index 100% rename from resources/chevrons_right.png rename to syncplay/resources/chevrons_right.png diff --git a/resources/clock_go.png b/syncplay/resources/clock_go.png similarity index 100% rename from resources/clock_go.png rename to syncplay/resources/clock_go.png diff --git a/resources/cog.png b/syncplay/resources/cog.png similarity index 100% rename from resources/cog.png rename to syncplay/resources/cog.png diff --git a/resources/cog_delete.png b/syncplay/resources/cog_delete.png similarity index 100% rename from resources/cog_delete.png rename to syncplay/resources/cog_delete.png diff --git a/resources/comments.png b/syncplay/resources/comments.png similarity index 100% rename from resources/comments.png rename to syncplay/resources/comments.png diff --git a/resources/control_pause_blue.png b/syncplay/resources/control_pause_blue.png similarity index 100% rename from resources/control_pause_blue.png rename to syncplay/resources/control_pause_blue.png diff --git a/resources/control_play_blue.png b/syncplay/resources/control_play_blue.png similarity index 100% rename from resources/control_play_blue.png rename to syncplay/resources/control_play_blue.png diff --git a/resources/cross.png b/syncplay/resources/cross.png similarity index 100% rename from resources/cross.png rename to syncplay/resources/cross.png diff --git a/resources/cross_checkbox.png b/syncplay/resources/cross_checkbox.png similarity index 100% rename from resources/cross_checkbox.png rename to syncplay/resources/cross_checkbox.png diff --git a/resources/delete.png b/syncplay/resources/delete.png similarity index 100% rename from resources/delete.png rename to syncplay/resources/delete.png diff --git a/resources/door_in.png b/syncplay/resources/door_in.png similarity index 100% rename from resources/door_in.png rename to syncplay/resources/door_in.png diff --git a/resources/email_go.png b/syncplay/resources/email_go.png similarity index 100% rename from resources/email_go.png rename to syncplay/resources/email_go.png diff --git a/resources/empty_checkbox.png b/syncplay/resources/empty_checkbox.png similarity index 100% rename from resources/empty_checkbox.png rename to syncplay/resources/empty_checkbox.png diff --git a/resources/error.png b/syncplay/resources/error.png similarity index 100% rename from resources/error.png rename to syncplay/resources/error.png diff --git a/resources/eye.png b/syncplay/resources/eye.png similarity index 100% rename from resources/eye.png rename to syncplay/resources/eye.png diff --git a/resources/film_add.png b/syncplay/resources/film_add.png similarity index 100% rename from resources/film_add.png rename to syncplay/resources/film_add.png diff --git a/resources/film_edit.png b/syncplay/resources/film_edit.png similarity index 100% rename from resources/film_edit.png rename to syncplay/resources/film_edit.png diff --git a/resources/film_folder_edit.png b/syncplay/resources/film_folder_edit.png similarity index 100% rename from resources/film_folder_edit.png rename to syncplay/resources/film_folder_edit.png diff --git a/resources/film_go.png b/syncplay/resources/film_go.png similarity index 100% rename from resources/film_go.png rename to syncplay/resources/film_go.png diff --git a/resources/film_link.png b/syncplay/resources/film_link.png similarity index 100% rename from resources/film_link.png rename to syncplay/resources/film_link.png diff --git a/resources/folder_explore.png b/syncplay/resources/folder_explore.png similarity index 100% rename from resources/folder_explore.png rename to syncplay/resources/folder_explore.png diff --git a/resources/folder_film.png b/syncplay/resources/folder_film.png similarity index 100% rename from resources/folder_film.png rename to syncplay/resources/folder_film.png diff --git a/resources/help.png b/syncplay/resources/help.png similarity index 100% rename from resources/help.png rename to syncplay/resources/help.png diff --git a/resources/hicolor/128x128/apps/syncplay.png b/syncplay/resources/hicolor/128x128/apps/syncplay.png similarity index 100% rename from resources/hicolor/128x128/apps/syncplay.png rename to syncplay/resources/hicolor/128x128/apps/syncplay.png diff --git a/resources/hicolor/16x16/apps/syncplay.png b/syncplay/resources/hicolor/16x16/apps/syncplay.png similarity index 100% rename from resources/hicolor/16x16/apps/syncplay.png rename to syncplay/resources/hicolor/16x16/apps/syncplay.png diff --git a/resources/hicolor/24x24/apps/syncplay.png b/syncplay/resources/hicolor/24x24/apps/syncplay.png similarity index 100% rename from resources/hicolor/24x24/apps/syncplay.png rename to syncplay/resources/hicolor/24x24/apps/syncplay.png diff --git a/resources/hicolor/256x256/apps/syncplay.png b/syncplay/resources/hicolor/256x256/apps/syncplay.png similarity index 100% rename from resources/hicolor/256x256/apps/syncplay.png rename to syncplay/resources/hicolor/256x256/apps/syncplay.png diff --git a/resources/hicolor/32x32/apps/syncplay.png b/syncplay/resources/hicolor/32x32/apps/syncplay.png similarity index 100% rename from resources/hicolor/32x32/apps/syncplay.png rename to syncplay/resources/hicolor/32x32/apps/syncplay.png diff --git a/resources/hicolor/48x48/apps/syncplay.png b/syncplay/resources/hicolor/48x48/apps/syncplay.png similarity index 100% rename from resources/hicolor/48x48/apps/syncplay.png rename to syncplay/resources/hicolor/48x48/apps/syncplay.png diff --git a/resources/hicolor/64x64/apps/syncplay.png b/syncplay/resources/hicolor/64x64/apps/syncplay.png similarity index 100% rename from resources/hicolor/64x64/apps/syncplay.png rename to syncplay/resources/hicolor/64x64/apps/syncplay.png diff --git a/resources/hicolor/96x96/apps/syncplay.png b/syncplay/resources/hicolor/96x96/apps/syncplay.png similarity index 100% rename from resources/hicolor/96x96/apps/syncplay.png rename to syncplay/resources/hicolor/96x96/apps/syncplay.png diff --git a/resources/house.png b/syncplay/resources/house.png similarity index 100% rename from resources/house.png rename to syncplay/resources/house.png diff --git a/resources/icon.icns b/syncplay/resources/icon.icns similarity index 100% rename from resources/icon.icns rename to syncplay/resources/icon.icns diff --git a/resources/icon.ico b/syncplay/resources/icon.ico similarity index 100% rename from resources/icon.ico rename to syncplay/resources/icon.ico diff --git a/resources/key_go.png b/syncplay/resources/key_go.png similarity index 100% rename from resources/key_go.png rename to syncplay/resources/key_go.png diff --git a/resources/license.rtf b/syncplay/resources/license.rtf similarity index 100% rename from resources/license.rtf rename to syncplay/resources/license.rtf diff --git a/resources/lock.png b/syncplay/resources/lock.png similarity index 100% rename from resources/lock.png rename to syncplay/resources/lock.png diff --git a/resources/lock_green.png b/syncplay/resources/lock_green.png similarity index 100% rename from resources/lock_green.png rename to syncplay/resources/lock_green.png diff --git a/resources/lock_green_dialog.png b/syncplay/resources/lock_green_dialog.png similarity index 100% rename from resources/lock_green_dialog.png rename to syncplay/resources/lock_green_dialog.png diff --git a/resources/lock_open.png b/syncplay/resources/lock_open.png similarity index 100% rename from resources/lock_open.png rename to syncplay/resources/lock_open.png diff --git a/resources/lua/intf/syncplay.lua b/syncplay/resources/lua/intf/syncplay.lua similarity index 100% rename from resources/lua/intf/syncplay.lua rename to syncplay/resources/lua/intf/syncplay.lua diff --git a/resources/macOS_dmg_bkg.tiff b/syncplay/resources/macOS_dmg_bkg.tiff similarity index 100% rename from resources/macOS_dmg_bkg.tiff rename to syncplay/resources/macOS_dmg_bkg.tiff diff --git a/resources/macOS_readme.pdf b/syncplay/resources/macOS_readme.pdf similarity index 100% rename from resources/macOS_readme.pdf rename to syncplay/resources/macOS_readme.pdf diff --git a/resources/man/changelog.md b/syncplay/resources/man/changelog.md similarity index 100% rename from resources/man/changelog.md rename to syncplay/resources/man/changelog.md diff --git a/resources/mpc-be.png b/syncplay/resources/mpc-be.png similarity index 100% rename from resources/mpc-be.png rename to syncplay/resources/mpc-be.png diff --git a/resources/mpc-hc.png b/syncplay/resources/mpc-hc.png similarity index 100% rename from resources/mpc-hc.png rename to syncplay/resources/mpc-hc.png diff --git a/resources/mpc-hc64.png b/syncplay/resources/mpc-hc64.png similarity index 100% rename from resources/mpc-hc64.png rename to syncplay/resources/mpc-hc64.png diff --git a/resources/mplayer.png b/syncplay/resources/mplayer.png similarity index 100% rename from resources/mplayer.png rename to syncplay/resources/mplayer.png diff --git a/resources/mpv.png b/syncplay/resources/mpv.png similarity index 100% rename from resources/mpv.png rename to syncplay/resources/mpv.png diff --git a/resources/page_white_key.png b/syncplay/resources/page_white_key.png similarity index 100% rename from resources/page_white_key.png rename to syncplay/resources/page_white_key.png diff --git a/resources/shield_add.png b/syncplay/resources/shield_add.png similarity index 100% rename from resources/shield_add.png rename to syncplay/resources/shield_add.png diff --git a/resources/shield_edit.png b/syncplay/resources/shield_edit.png similarity index 100% rename from resources/shield_edit.png rename to syncplay/resources/shield_edit.png diff --git a/resources/spinner.mng b/syncplay/resources/spinner.mng similarity index 100% rename from resources/spinner.mng rename to syncplay/resources/spinner.mng diff --git a/resources/syncplay-server.desktop b/syncplay/resources/syncplay-server.desktop similarity index 100% rename from resources/syncplay-server.desktop rename to syncplay/resources/syncplay-server.desktop diff --git a/resources/syncplay.desktop b/syncplay/resources/syncplay.desktop similarity index 100% rename from resources/syncplay.desktop rename to syncplay/resources/syncplay.desktop diff --git a/resources/syncplay.png b/syncplay/resources/syncplay.png similarity index 100% rename from resources/syncplay.png rename to syncplay/resources/syncplay.png diff --git a/resources/syncplayintf.lua b/syncplay/resources/syncplayintf.lua similarity index 100% rename from resources/syncplayintf.lua rename to syncplay/resources/syncplayintf.lua diff --git a/resources/table_refresh.png b/syncplay/resources/table_refresh.png similarity index 100% rename from resources/table_refresh.png rename to syncplay/resources/table_refresh.png diff --git a/resources/third-party-notices.rtf b/syncplay/resources/third-party-notices.rtf similarity index 100% rename from resources/third-party-notices.rtf rename to syncplay/resources/third-party-notices.rtf diff --git a/resources/tick.png b/syncplay/resources/tick.png similarity index 100% rename from resources/tick.png rename to syncplay/resources/tick.png diff --git a/resources/tick_checkbox.png b/syncplay/resources/tick_checkbox.png similarity index 100% rename from resources/tick_checkbox.png rename to syncplay/resources/tick_checkbox.png diff --git a/resources/timeline_marker.png b/syncplay/resources/timeline_marker.png similarity index 100% rename from resources/timeline_marker.png rename to syncplay/resources/timeline_marker.png diff --git a/resources/user_comment.png b/syncplay/resources/user_comment.png similarity index 100% rename from resources/user_comment.png rename to syncplay/resources/user_comment.png diff --git a/resources/user_key.png b/syncplay/resources/user_key.png similarity index 100% rename from resources/user_key.png rename to syncplay/resources/user_key.png diff --git a/resources/vlc.png b/syncplay/resources/vlc.png similarity index 100% rename from resources/vlc.png rename to syncplay/resources/vlc.png diff --git a/resources/world_add.png b/syncplay/resources/world_add.png similarity index 100% rename from resources/world_add.png rename to syncplay/resources/world_add.png diff --git a/resources/world_explore.png b/syncplay/resources/world_explore.png similarity index 100% rename from resources/world_explore.png rename to syncplay/resources/world_explore.png diff --git a/resources/world_go.png b/syncplay/resources/world_go.png similarity index 100% rename from resources/world_go.png rename to syncplay/resources/world_go.png diff --git a/syncplay/utils.py b/syncplay/utils.py index 776889b..6b49129 100755 --- a/syncplay/utils.py +++ b/syncplay/utils.py @@ -147,7 +147,7 @@ def isASCII(s): def findResourcePath(resourceName): if resourceName == "syncplay.lua": - resourcePath = os.path.join(findWorkingDir(),"resources", "lua", "intf", resourceName) + resourcePath = os.path.join(findWorkingDir(), "resources", "lua", "intf", resourceName) else: resourcePath = os.path.join(findWorkingDir(), "resources", resourceName) return resourcePath @@ -156,7 +156,7 @@ def findResourcePath(resourceName): def findWorkingDir(): frozen = getattr(sys, 'frozen', '') if not frozen: - path = os.path.dirname(os.path.dirname(__file__)) + path = os.path.dirname(__file__) elif frozen in ('dll', 'console_exe', 'windows_exe', 'macosx_app'): path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) elif frozen: # needed for PyInstaller