View Single Post
Old 04-09-2015, 07:00 PM
hzlergn hzlergn is offline
Join Date: Apr 2015
Posts: 3
As a summary I have one CAVE and one launcher file that works properly. I tried to copy some configuration codes from the launcher file as follows;
I tried to do the same but it gave an error like there is no config file and the problem is that original code depend on that launcher. Since my coding experience is too limited how can I do this in a simple way ?

import Config
if Config.MULTISAMPLE != 0:
if os.path.exists( trackerPath ):
fileList = os.listdir( trackerPath )
vizconnectLauncher = None
for file in fileList:
if 'vizconnect_config' in file.lower() and '.pyc' not in file.lower():
if 'desktop' in file.lower():
userTrackers.insert(0, file.split('_')[-1].replace('.py', '' ))
userTrackers.append( file.split('_')[-1].replace('.py', '' ) )

elif '' == file:
vizconnectLauncher = file

if vizconnectLauncher is not None:
userTrackers.append( vizconnectLauncher )
Reply With Quote