# Custom paths

**URL:** <https://forum.rasa.com/t/custom-paths/56496>\
**Category:** Rasa Open Source\
**Tags:** testing\
**Created:** [December 12, 2022, 11:47am UTC](https://forum.rasa.com/t/custom-paths/56496 "2022-12-12T11:47:24Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![marcobd3](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@marcobd3](https://forum.rasa.com/u/marcobd3)\
**Post date:** [December 12, 2022, 11:47am UTC](https://forum.rasa.com/t/custom-paths/56496/1 "2022-12-12T11:47:24Z")

</div>

Hello everyone,

I’m developing a rasa chatbot, but I need to change my working paths, modifying the default structure. To do this, I write custom functions where I run, for example, the training, or the rasa server. is this the best option?

Right now, an example of my code is:

```auto
    def execute(self):
        default_path = Constants.DEFAULT_RASA_PATH

        args = argparse.Namespace()
        args.loglevel = "DEBUG"
        args.log_file = default_path + "rasa_server_logfile.log"
        args.endpoints = Constants.DEFAULT_RASA_ENDPOINTS_PATH
        args.credentials = Constants.DEFAULT_RASA_CREDENTIALS_PATH
        args.enable_api = True
        args.remote_storage = None
        args.model = Constants.DEFAULT_RASA_MODELS_PATH
        args.cors = "*"
        logging.getLogger( __name__ ).setLevel("DEBUG")
        run.run(args)
        return

```

Where constants contains the new routes and other constants to apply.

I have two questions:

- The loglevel doesn’t change, is there any way to do that?
- Can I just modify the default constants with less code?

Thank you!

---

_[View the full topic](https://forum.rasa.com/t/custom-paths/56496)._
