# Python scripting support, os.system not there?

**URL:** https://www.finalbuilder.com/forums/t/python-scripting-support-os-system-not-there/1146
**Category:** Discussion
**Created:** [March 17, 2009, 11:29am UTC](https://www.finalbuilder.com/forums/t/python-scripting-support-os-system-not-there/1146 "2009-03-17T11:29:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 17, 2009, 11:29am UTC](https://www.finalbuilder.com/forums/t/python-scripting-support-os-system-not-there/1146/1 "2009-03-17T11:29:43Z")

</div>

I'm writing a python script using the new IronPython interpreter included in FB. os.system does not seem to exist.

&nbsp;

When running a standard IronPython console, this will work:

&nbsp;

import os

os.system("dir")

&nbsp;

(The above will return a directory listing)

&nbsp;

But running the above in FB will result in an AttributeError, that "system" doesn't exist in "os".

&nbsp;

(I've also tried replacing "os" with "nt", same result.)

&nbsp;

Why doesn't "system" exist when running python scripts in FB?

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [March 18, 2009, 1:47am UTC](https://www.finalbuilder.com/forums/t/python-scripting-support-os-system-not-there/1146/2 "2009-03-18T01:47:25Z")

</div>

Hi Fredrik,   
  
 I’ve tested it here and I’ve been able to execute os.system without any problems, make sure that you’ve installed the latest Python 2.5 release (IronPython 2.0 is compatible with Python 2.5 libraries) and that you’ve set the path of the python libraries in the FinalBuilder options (Tools -\> Options -\> Script Options -\> Python Library Directory).   
  
 Regards,   
 Paul.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 7, 2013, 4:55am UTC](https://www.finalbuilder.com/forums/t/python-scripting-support-os-system-not-there/1146/3 "2013-03-07T04:55:00Z")

</div>

I have tried the same with final builder 7 ( version 7.0.0.1561)   
  
 I can import almost all the standard python modules except os.   
 Then I tried to remedy this by installing IronPython and then standard Python (both version 2.7.3) and editing the settings Tools -\> Options -\> Script Options -\> Python Library Directory   
  
 This still did not work.   
  
 Pretty terrible user experience for Python script integration with FB.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 8, 2013, 12:35pm UTC](https://www.finalbuilder.com/forums/t/python-scripting-support-os-system-not-there/1146/4 "2013-03-08T12:35:29Z")

</div>

The current release build of FinalBuider is linked to IronPython 2.6, which supports Python 2.6. We will update to the latest ironpython for the next major version of FinalBuilder. To do so now would potentially break existing installs, since people already have scripts and installs working with 2.6. FWIW, I just tested with 2.6 and the os module imports fine.
