Commit 4fefbeeb authored by jspiegel's avatar jspiegel

revise sys.platform checks in docker and user_vars

parent fdcdbc4e
...@@ -27,7 +27,7 @@ WIP (4.0.1) ...@@ -27,7 +27,7 @@ WIP (4.0.1)
* Revised `./docker/README.md` to clarify docker use. * Revised `./docker/README.md` to clarify docker use.
* Updated the docker scripts. Bug fixes, added `--rm` to the docker command, * Updated the docker scripts. Bug fixes, added `--rm` to the docker command,
etc. etc.
* Revised `$PATH/autogrow4/autogrow/user_vars.py` to correct minor typo with sys.platform checks. * Revised `$PATH/autogrow4/autogrow/user_vars.py` to correct minor typos with OS checks.
* Added `$PATH/autogrow4/CHANGELOG.md`. * Added `$PATH/autogrow4/CHANGELOG.md`.
4.0.0 4.0.0
......
...@@ -1016,7 +1016,7 @@ def load_in_commandline_parameters(argv): ...@@ -1016,7 +1016,7 @@ def load_in_commandline_parameters(argv):
PATH TO THE Custom DOCKING SCRIPT" PATH TO THE Custom DOCKING SCRIPT"
) )
if vars["dock_choice"] in ["VinaDocking", "QuickVina2Docking"]: if vars["dock_choice"] in ["VinaDocking", "QuickVina2Docking"]:
if sys.platform == "darwin": if sys.platform.lower() == "darwin":
# Some MacOS require docking software to be notarized. # Some MacOS require docking software to be notarized.
# This will require an internet signal # This will require an internet signal
run_macos_notarization(vars) run_macos_notarization(vars)
......
...@@ -82,10 +82,10 @@ def change_permissions_recursively(file_or_folder_path): ...@@ -82,10 +82,10 @@ def change_permissions_recursively(file_or_folder_path):
if os.name == "nt" or os.name == "ce": if os.name == "nt" or os.name == "ce":
# chmod and os.chmod do not apply to Windows OS so lets skip this. # chmod and os.chmod do not apply to Windows OS so lets skip this.
pass pass
elif sys.platform == "linux" or sys.platform == "linux2": elif sys.platform.lower() in ["linux", "linux2"]:
# chmod -R recursively open the permissions # chmod -R recursively open the permissions
os.system("chmod -R a+rwx {}".format(file_or_folder_path)) os.system("chmod -R a+rwx {}".format(file_or_folder_path))
elif sys.platform == "darwin": elif sys.platform.lower() == "darwin":
# chmod -R recursively open the permissions # chmod -R recursively open the permissions
os.system("chmod -R a+rwx {}".format(file_or_folder_path)) os.system("chmod -R a+rwx {}".format(file_or_folder_path))
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment