Skip to content

Commit

Permalink
Improve export folder to custom one (#2439)
Browse files Browse the repository at this point in the history
* Improve export folder to custom one

* improve based on Darren feedback

Co-authored-by: James Maslek <jmaslek11@gmail.com>
  • Loading branch information
DidierRLopes and jmaslek authored Aug 28, 2022
1 parent c30a8de commit 9731217
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion openbb_terminal/settings_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,8 @@ def call_export(self, other_args: List[str]):
help="Folder where to export data. 'default' redirects to OpenBB Terminal 'exports'",
default="default",
)
if other_args and "-" not in other_args[0][0]:
other_args.insert(0, "--folder")
ns_parser = parse_simple_args(parser, other_args)

if ns_parser:
Expand All @@ -489,7 +491,9 @@ def call_export(self, other_args: List[str]):
export_path += "/".join([ns_parser.folder] + self.queue)
self.queue = []

base_path = os.path.dirname(os.path.abspath(__file__))
export_path = export_path.replace("'", "").replace('"', "")

base_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
default_path = os.path.join(base_path, "exports")

success_export = False
Expand Down
2 changes: 1 addition & 1 deletion website/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ tweak how the terminal behaves. This includes the following:
- `dt` adds or removes the datetime from the flair (which is next to the emoji).
- `flair` allows you to change the emoji that is used.
- `lang` gives the ability to change the terminal language. At this moment, the terminal is only available in English.
- `export` defines the folder you wish to export data to you acquire from the terminal.
- `export` defines the folder you wish to export data you acquire from the terminal. Use quotes for custom locations.
- `tz` allows you to change the timezone if this is incorrectly displayed for you.
- `autoscaling` automatically scales plots for you if enabled (when green).
- `pheight` sets the percentage height of the plot (graphs) displayed (if autoscaling is enabled).
Expand Down

0 comments on commit 9731217

Please sign in to comment.