From 2d86ea8dcaf489ed303f147cce196ff4c8064164 Mon Sep 17 00:00:00 2001 From: adangert Date: Sun, 25 Aug 2019 22:58:28 -0500 Subject: [PATCH] changed chmod on windows --- piparty.py | 10 +++++----- pybluez | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 160000 pybluez diff --git a/piparty.py b/piparty.py index e96636ef..ec6e8d53 100644 --- a/piparty.py +++ b/piparty.py @@ -16,7 +16,6 @@ import controller_process import update - TEAM_NUM = len(colors.team_color_list) #TEAM_COLORS = colors.generate_colors(TEAM_NUM) @@ -247,12 +246,12 @@ def __init__(self): self.command_from_web = '' self.initialize_settings() self.update_settings_file() - + #check for update if platform == "linux" or platform == "linux2": self.big_update = update.check_for_update(self.ns.settings['menu_voice']) self.git_hash = update.run_command("git rev-parse HEAD")[:7] - + #defined outside of ns.settings as it's a purely dev option self.experimental = False @@ -492,7 +491,7 @@ def check_change_mode(self): change_mode = True change_forward = True move_opt[Opts.selection.value] = Selections.nothing.value - + if move_opt[Opts.selection.value] == Selections.change_mode_backward.value: #change the game mode if allowed if self.ns.settings['move_can_be_admin']: @@ -750,7 +749,8 @@ def update_settings_file(self): #option to make file editable by non-root #let's leave it as root only, people shouldn't #mess with the config file for now - os.system('chmod 666 %s' % common.SETTINGSFILE) + if platform == "linux" or platform == "linux2": + os.system('chmod 666 %s' % common.SETTINGSFILE) def update_setting(self,key,val): temp_settings = self.ns.settings diff --git a/pybluez b/pybluez deleted file mode 160000 index 06f3c83d..00000000 --- a/pybluez +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 06f3c83dcd7857c7f97aa1f882357725fc4342d4