You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-8
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@ Setup
10
10
-`-m | --min` Optional: minifies the output by stripping whitespace
11
11
-`-s | --save [FILE]` Optional: saves to the target output file instead of stdout
12
12
-`-c | --copy` Optional: copies code to clipboard (must have *pyperclip* installed: `pip install pyperclip`)
13
-
-`--enable-imports` Optional: Enables the experimental import functionality.
14
13
15
14
## Syntax Highlighting
16
15
In the `Syntax/` folder, you can find the raw Iro code which I used to generate a Sublime Text file with modifications. You can directly import the `OWScript.sublime-syntax` file by putting it in your ST3 `User` folder.
@@ -293,12 +292,9 @@ scores.append(123) // Method
293
292
## Imports
294
293
OWScript allows bigger scripts and scripts that use common funcitonality to be broken up into modules and imported into a base file. All the "imported" files are directly copied into the base script to be transpiled to workshop code.
295
294
296
-
To use this experimental feature, add the `--enable-imports` flag to the command and it will search your script for imports. This is recursive and allows for importing modules within modules. The modules you're importing **must** have the `.owpy`file ending to be properly imported or it will not be able to find the the module.
295
+
You can import a file by using the `#import 'filepath'`. If the file is in a folder, put the relative path to the file as shown in the examples below:
297
296
298
-
You can import a file by using the `#import 'filename'`
0 commit comments