Skip to content

Commit

Permalink
add examples folder
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Jun 14, 2016
1 parent 3b0e66c commit 2aa93ef
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ docs/_build/
# PyBuilder
target/

manage.yml
.manage.yml
/manage.yml
/.manage.yml
47 changes: 47 additions & 0 deletions examples/simple/manage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
project_name: My Simple Project
help_text: |
This is the {project_name} interactive shell
You can have commands or open the shell
shell:
readline_enabled: true
banner:
enabled: true
message: 'Hello {project_name} World'
auto_import:
display: true
objects:
manage.utils.import_string:
os.path:
as: path
init:
exists:
kwargs:
path: /tmp
init_script: |
print("path object is:")
print(type(path))
print("Hello path from init_script")
sys.path:
as: sp
init:
insert:
args:
- 0
- /tmp/add_on_object_init
init_script: |
def function():
assert isinstance(sp, list)
return type(sp)
print(function())
init:
sys.path.append:
args:
- /tmp/added_on_shell_init
init_script: |
# add a path to sys.path
import sys
sys.path.append('/tmp/added_on_shell_init_script')
assert '/tmp/added_on_shell_init' in sys.path
assert '/tmp/add_on_object_init' in sys.path
assert '/tmp/added_on_shell_init_script' in sys.path

0 comments on commit 2aa93ef

Please sign in to comment.