I've heard that there is a library that allows you to get the appdata directory
for a given OS, but I'd like to do it myself, as a learning experience.
Is there a built in way to get a users Appdata Directory? For example on OS X
it's in '~/Library//Application Support/'. I can get the OS just f
Thanks for the help on PEP, but I can't find a way to get the application
support (appdata on Windows, no idea on Linux). If I do:
print os.environ['HOME']
I get: '/Users/eamonn', as that is my home directory. But when I do:
print os.environ['APPDATA']
I get an error. But when I do:
print os.
On Tuesday, November 26, 2013 7:40:50 PM UTC, Irmen de Jong wrote:
> On 26-11-2013 19:09, Eamonn Rea wrote:
>
> > Thanks for the help on PEP, but I can't find a way to get the application
> > support (appdata on Windows, no idea on Linux). If I do:
>
> >
Oh, sorry, I'm new to how Google Groups works. I wonder why it lays it out like
that. Can it not just show quotes like the way that PHPbb does?
I never thought of reading the source code, thanks! :-)
Oh, and the last message is just spam :P
--
https://mail.python.org/mailman/listinfo/python-lis
Hello! I'm using Jython to write a game with Python/Jython/LibGDX. I wasn't
having any trouble, and everything was going well, but sadly I can't access
items in enumerations.
If you know about the LibGDX library and have used it, you'll probably know
about the BodyType enumeration for Box2D. I
Ok, here's the code:
body_def = BodyDef() # Imports the BodyDef class fine.
body_def.type = BodyDef.DynamicBody # Says it can't find a module from LibGDX
called BodyDef.
All my code:
from com.badlogic.gdx import Game, Gdx, Screen
from com.badlogic.gdx.backends.lwjgl import LwjglApplicationConf
When opening a file, you'd say whether you want to read or write to a file.
This is fine, but say for example later on in the program I change my mind and
I want to write to a file instead of reading it. Yes, I could just say 'r+w'
when opening the file, but what if I don't know if I'm going to
Thanks for the help!
Ok, I'll look into the mailing list.
--
https://mail.python.org/mailman/listinfo/python-list