WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 02-06-2019, 09:55 AM
fivel_lab fivel_lab is offline
Member
 
Join Date: Mar 2011
Posts: 36
Sure!

Directory structure is set up like this:

Code:
FIVEL/                       top-level enclosing folder
          fvl/                        package
              __init__.py                     package initalization
              likertScaleObj.py                  example package module(s)
          VRproject/                         project directory
              F18/
                    F18.py                    last semester's version of the exp
              S19/
                   S19.py                    current semester's version
the code in S19.py ::::
Code:
import sys
import os
import os.path as path

sys.path.insert(0, path.dirname(path.dirname(path.dirname(__file__))))

#confirm path info with print statements
print path.dirname(__file__)
print path.dirname(path.dirname(__file__))
print path.dirname(path.dirname(path.dirname(__file__)))
print sys.path
print os.listdir(path.dirname(path.dirname(path.dirname(__file__))))

import fvl #no error
but.. after that no magic autocomplete

thanks!
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
view_coliision module bbb Vizard 2 08-24-2016 12:46 AM
Could not locate _Vizcore module Bhavesh Vizard 1 06-21-2016 01:48 AM
vizinput module missing whaleeee Vizard 1 02-05-2013 11:30 PM
Exception in module vizjoy fordprefect Vizard 2 12-03-2012 01:41 AM
vhil module vadrian Vizard 2 01-27-2005 11:52 AM


All times are GMT -7. The time now is 11:46 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC