Blender Exporter for Indigo06 v. 63beta4

Announcements, requests and support regarding the Blender Indigo export script
Jananton
Posts: 66
Joined: Sun Dec 31, 2006 12:56 pm
Location: Amsterdam, The Netherlands

Post by Jananton » Fri Jan 26, 2007 4:12 am

u3dreal wrote:Hi well i think you don't have permission to write to root..!!
Hmm, I thought a user doing cd / would be in the user root folder, but it seems not as I see you say this. :)

In that case try this:

Code: Select all

def launchLinIndigo(filename):
   # Create shell script and make it executable
   f = open("~/IndigoWrapper.sh", 'w') 
   f.write("#!/bin/sh\n")
   f.write("cd ~/ \n") 
   f.write("wine indigo.exe " + filename + " -t " + str(Threads.val)) 
   f.close() 
   os.system("chmod +x ~/IndigoWrapper.sh") 
    
   # call external shell script to start Indigo 
   cmd= "~/./IndigoWrapper.sh" 
   print cmd 
   os.system(cmd) 
Presuming the '~' is the shortcut to the users home directory... 8)

It's too long ago to know for sure, if you know the correct one u3dreal please correct the tilde accordingly.

Greetings from puzzled Amsterdam,

Jan

Post Reply
61 posts

Who is online

Users browsing this forum: No registered users and 34 guests