-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patched virtual desktop actions that broke due to a febrary windows u…
…pdate. Virtual Desktop Actions Not Working After Win11 Feb 2024 Update #12
- Loading branch information
Showing
11 changed files
with
32 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ build | |
*.pptx | ||
__pycache__ | ||
run/ | ||
*run.spec | ||
*run.spec | ||
.venv |
Binary file not shown.
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
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,12 +1,13 @@ | ||
import os | ||
import subprocess | ||
from virtual import find_package_json | ||
def install_requirements(): | ||
# Get current directory | ||
current_dir = os.path.dirname(os.path.abspath(__file__)) | ||
new_path = os.path.normpath(os.path.abspath(os.path.join(current_dir,r"..\Sources\com.arkyasmal.windowactions.sdPlugin\app\windowsScripts"))) | ||
root_path = find_package_json(current_dir) | ||
# Install cx_Freeze using pip | ||
subprocess.run(['pip', 'install', '--force', '--no-cache', '--pre', '--extra-index-url', 'https://marcelotduarte.github.io/packages/', 'cx_Freeze'], cwd=new_path) | ||
subprocess.run(['pip', 'install', '--force', '--no-cache', '--pre', '--extra-index-url', 'https://marcelotduarte.github.io/packages/', 'cx_Freeze'], cwd=root_path) | ||
# Install requirements.txt using pip | ||
subprocess.run(['pip', 'install', '-r', 'requirements.txt'], cwd=new_path) | ||
subprocess.run(['pip', 'install', '-r', 'requirements.txt'], cwd=root_path) | ||
if __name__ == '__main__': | ||
install_requirements() |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import os | ||
import subprocess | ||
def find_package_json(directory): | ||
if(directory is None or directory == ''): | ||
return None | ||
parent = os.path.dirname(directory) | ||
files = os.listdir(directory) | ||
if 'package.json' in files: | ||
return os.path.join(directory) | ||
else: | ||
return find_package_json(parent) | ||
def create_virtual(): | ||
curr_dir = os.path.dirname(os.path.abspath(__file__)) | ||
root_dir = find_package_json(curr_dir) | ||
app_path = os.path.normpath(os.path.abspath(os.path.join(root_dir,r'.\Sources\com.arkyasmal.windowactions.sdPlugin\app\windowsScripts'))) | ||
subprocess.run(['py', '-m', 'venv', 'virtual'], cwd=app_path) | ||
bat_file_path = os.path.join(app_path, 'virtual', 'Scripts') | ||
subprocess.run(['activate.bat'], cwd=bat_file_path) | ||
if __name__ == '__main__': | ||
create_virtual() |
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
File renamed without changes.