Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4120

System.IO is missing DriveInfo in python2 (Rhino8)

$
0
0

If I start with the python 2 note, I get an error “System.IO object has no attribute DriveInfo”
If I start with the python 3 note, the DriveInfo stuff is missing from the Intellisense but it compiles

#! python 2

import System

drives = System.IO.DriveInfo.GetDrives()
for drive in drives:
    print(drive)

2024-02-12_9-09-20

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4120