# Python- defining Startup Scripts relative to project

**URL:** <https://forums.unrealengine.com/t/python-defining-startup-scripts-relative-to-project/235234>\
**Category:** Editor Scripting\
**Tags:** unreal-engine, UE4-26\
**Created:** [June 13, 2021, 6:39pm UTC](https://forums.unrealengine.com/t/python-defining-startup-scripts-relative-to-project/235234 "2021-06-13T18:39:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eco\_bach2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eco\_bach2](https://forums.unrealengine.com/u/eco_bach2)\
**Post date:** [June 13, 2021, 6:39pm UTC](https://forums.unrealengine.com/t/python-defining-startup-scripts-relative-to-project/235234/1 "2021-06-13T18:39:38Z")

</div>

Getting started with Python in Unreal  
In the Python Plugin you can define the paths for a StartupScript as well as a 'Additional path(s).

So for instance I am using  
C:/UnrealPython/StartupScript.py

But instead I want the path to be project relative, ie relative to my .uproject file.  
How do I doo this?

---

<div class="post-metadata">

**Author:** ![GeeWeeWilicuspy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GeeWeeWilicuspy](https://forums.unrealengine.com/u/GeeWeeWilicuspy)\
**Post date:** [September 28, 2022, 4:21pm UTC](https://forums.unrealengine.com/t/python-defining-startup-scripts-relative-to-project/235234/2 "2022-09-28T16:21:07Z")

</div>

I also really want to know how to set a project relative path!

---

<div class="post-metadata">

**Author:** ![Aminyn0205](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aminyn0205](https://forums.unrealengine.com/u/Aminyn0205)\
**Post date:** [August 8, 2025, 8:46am UTC](https://forums.unrealengine.com/t/python-defining-startup-scripts-relative-to-project/235234/3 "2025-08-08T08:46:00Z")

</div>

Choose the file explore path under project direcoty and you can get the string like “../../../ProjectName/Content/Python”
