# Import resource with alias

**URL:** <https://forum.robotframework.org/t/import-resource-with-alias/9537>\
**Category:** Robot Framework\
**Created:** [4 February 2026 09:51 UTC](https://forum.robotframework.org/t/import-resource-with-alias/9537 "2026-02-04T09:51:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtpeters](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/vtpeters/32/1866_2.png) [@vtpeters](https://forum.robotframework.org/u/vtpeters)\
**Post date:** [4 February 2026 09:51 UTC](https://forum.robotframework.org/t/import-resource-with-alias/9537/1 "2026-02-04T09:51:55Z")

</div>

It seems that it is possible to ‘import’ libraries with an alias, [as demonstrated here](https://stackoverflow.com/questions/26076434/import-library-in-robot-framework-as-another-name).

I’d like to be able to do the same with ‘importing’ resource files so I can use the alias instead of the name of the resource file if I’d like to use the ‘full path’.

So, instead of…  
` ***Settings*** `  
`Resource ${CURDIR}/../resources/database.robot`

` ***Testcases*** `  
`Test Something`  
` database.Call Keyword`

I’d like to be able to…

` ***Settings*** `  
`Resource ${CURDIR}/../resources/database.robot WITH NAME DB`

` ***Testcases*** `  
`Test Something`  
` DB.Call Keyword`

It would be very helpful if such a feature would exist.

---

<div class="post-metadata">

**Author:** ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)\
**Post date:** [4 February 2026 10:29 UTC](https://forum.robotframework.org/t/import-resource-with-alias/9537/2 "2026-02-04T10:29:04Z")

</div>

I can see the sense behind that and that might not even be a breaking change. However, i dont think @pekkaklarck picks up feature requests from here, so i’d suggest a to file an issue to [GitHub · Where software is built](https://github.com/robotframework/robotframework/issues/)
