[Bf-python] Text buffers updating
Campbell Barton
cbarton at metavr.com
Fri Apr 29 15:08:22 CEST 2005
Mabe im missing somthing.
But is this what your after?
Its todo with python, not blender.
#---------------Python example
import config
# This is the key,
# will not work with...
# from config import *
reload(config) # <--- reloads from puyhon source
# Test me
print config.variable
#-----------> end
- Cambo
> I'm writing a script which uses a text buffer as 'config file', by way
> of it stores a list of variables, which are then imported from the
> script. But once the buffer is created, It can't be updated: even
> unliking it (deleting) and creating it again, the old buffer is
> imported. Is there a problem whit this?
>
> Klópes
> _______________________________________________
> Bf-python mailing list
> Bf-python at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-python
>
>
--
Campbell J Barton
133 Hope Street
Geelong West, Victoria 3218 Australia
URL: http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241
More information about the Bf-python
mailing list