-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
883b52d
commit 5901491
Showing
7 changed files
with
51 additions
and
260 deletions.
There are no files selected for viewing
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,32 @@ | ||
from sys import path | ||
|
||
def install(): | ||
# Adds the extensions commands to the command file | ||
import consts | ||
print("Installing VSCodeEXT") | ||
print(consts.COMMANDS_FILE) | ||
commandsFile = open(consts.COMMANDS_FILE, "a") | ||
commandsFile.write("vscode,VSCodeEXT\n") | ||
commandsFile.close() | ||
return | ||
|
||
def init(): | ||
# A very useful function that does a lot of things! | ||
return | ||
|
||
def listen(command): | ||
# Takes and processes command from OLGA | ||
|
||
# Adds olga's directory to be accessible | ||
import os | ||
olgaDir = os.getcwd().replace("Extensions"+os.sep, "") | ||
path.append(olgaDir) | ||
from olga import makeOOO | ||
|
||
# Package output into an Olga Output Object | ||
output = None | ||
if(command=="vscode"): | ||
output = makeOOO(text="Open Visual Studio Code") | ||
import subprocess | ||
subprocess.Popen("C:\\Users\\Joey\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe") # This opens up the calculator | ||
return output |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
adobe,AdobeEXT | ||
calculator,CalculatorEXT | ||
excel,ExcelEXT | ||
hello,HelloEXT | ||
itunes,ITunesEXT | ||
outlook,OutlookEXT | ||
powerpoint,PowerpointEXT | ||
vscode,VSCodeEXT | ||
word,WordEXT |