-
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.
added more easier way to add internal functions, among other things
- Loading branch information
1 parent
e3d5c2c
commit 83afcdc
Showing
8 changed files
with
158 additions
and
18 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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
*.pyc | ||
__pycache__/ | ||
__pycache__/ | ||
output/ | ||
pyinstaller_beta.json | ||
venv/ |
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,49 @@ | ||
# print(new_args) | ||
# print(name) | ||
# print(value) | ||
# if name == 'function': | ||
# function = {} | ||
# function_name = val_not_convert.split(',')[0] | ||
# function_lines = [] | ||
# current_num = line_number + 1 | ||
# current_space_count = 0 | ||
# while 1: | ||
# function_line = code_lines[current_num] | ||
# print('func line:', function_line) | ||
# if len(function_lines) == 0: | ||
# print('no function lines') | ||
# space_count = 0 | ||
# print('no space count') | ||
# for char in function_line: | ||
# if char == ' ': | ||
# print('char is a space character') | ||
# space_count += 1 | ||
# elif char == ' ': | ||
# print('char is a tab character') | ||
# space_count += 4 | ||
|
||
# current_space_count = space_count | ||
# print('current space_count:', current_space_count) | ||
|
||
# if function_line.startswith(' '*current_space_count): | ||
# print('function line starts with space with space count') | ||
# function_lines.append(function_line.strip(' '*current_space_count)) | ||
# elif function_line.startswith("}"): | ||
# print('function lines end') | ||
# break | ||
|
||
# function['name'] = function_name | ||
# function['lines'] = function_lines | ||
# print(function) | ||
# functions[function_name] = function | ||
# print(val_not_convert) | ||
# value = get_value(val_not_convert, line_number=line_number + 1, variables=variables) | ||
# print("val", value) | ||
|
||
# if name=="blah": print(new_args) | ||
# print(line_split) | ||
# function: functionName, ( name, another ) { | ||
# print: name | ||
# } | ||
# execute: "functionName", "another" | ||
# from .internal_functions import print |
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,5 +1,6 @@ | ||
from .internal_functions import _print | ||
|
||
KEYWORDS = { | ||
'print':_print, | ||
} | ||
KEYWORDS = [ | ||
'print', | ||
'function' | ||
] |
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,2 +1,2 @@ | ||
def _print(*args, **kwargs): | ||
print(*args, **kwargs) | ||
def _print(args): | ||
print(' '.join(args)) |
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,5 @@ | ||
from .internal_functions.print import _print | ||
|
||
KEYWORDS = { | ||
'print': _print, | ||
} |
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,73 @@ | ||
{ | ||
"version": "auto-py-to-exe-configuration_v1", | ||
"pyinstallerOptions": [ | ||
{ | ||
"optionDest": "noconfirm", | ||
"value": true | ||
}, | ||
{ | ||
"optionDest": "filenames", | ||
"value": "P:/Orange/run.py" | ||
}, | ||
{ | ||
"optionDest": "onefile", | ||
"value": true | ||
}, | ||
{ | ||
"optionDest": "console", | ||
"value": true | ||
}, | ||
{ | ||
"optionDest": "name", | ||
"value": "orange" | ||
}, | ||
{ | ||
"optionDest": "ascii", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "clean_build", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "strip", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "noupx", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "uac_admin", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "uac_uiaccess", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "win_private_assemblies", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "win_no_prefer_redirects", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "bootloader_ignore_signals", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "disable_windowed_traceback", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "datas", | ||
"value": "P:/Orange/orange;orange/" | ||
} | ||
], | ||
"nonPyinstallerOptions": { | ||
"increaseRecursionLimit": true, | ||
"manualArguments": "" | ||
} | ||
} |
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,2 +1,2 @@ | ||
var1: "yep" | ||
print: var1 | ||
print: var1 |