|
Swoka Ikran
|
 |
« Reply #15 on: May 23, 2011, 12:29:31 am » |
|
how is the IPA not screwed now?
It's still broken. The IPA issue doesn't appear correctable AFAIK. If I make the required unicode() change, Python crashes. Not sure why, but it has something to do with the actual IPA data itself... Here's your 1.8 with the Scramble/Quiz/Rhyme modules fixed: http://swokaikran.skxawng.lu/files/vrrtepcli_win_modfix.zipPlease do say how you did that?
Look up Py2EXE.  It turns the program into an EXE and several support files. Here's the above fixed version compiled with Py2EXE. Functionally identical to above, but doesn't need a Python installation. Install and use like the regular version: http://swokaikran.skxawng.lu/files/vcli_nopython.zipEDIT: @TA: If you downloaded the above files, download them again, rutxe. I uploaded the wrong version...  (Sorry, almost 2am...and I've been up since 8am...)
|
|
|
|
« Last Edit: May 23, 2011, 12:39:13 am by Swoka Ikran »
|
Logged
|
|
|
|
Tirea Aean
Olo'eyktan
Palulukan Makto
     
Karma: 154
Offline
 United States
ToS Username: Tirea Aean
Posts: 7329
and whatnot and stuff.
|
 |
« Reply #16 on: May 23, 2011, 12:38:12 am » |
|
ah sweet! Nìmun irayo. though the IPA is shot on windows, I guess that's not a super HUGE deal considering most people around here never read the IPA in the actual dictionary. and also, even less people read it and perfect their pronunciation skills for the sake of actually speaking to other people. it's all writing these days I guess.
|
|
|
|
|
Logged
|
Oe lu tirea aean, ulte lu oeru eana tirea. Na'vi Grammar Made Simple at tirea.learnnavi.org
Can't help helpin' |   |
|
|
|
|
Swoka Ikran
|
 |
« Reply #17 on: May 23, 2011, 12:44:21 am » |
|
ah sweet! Nìmun irayo. though the IPA is shot on windows, I guess that's not a super HUGE deal considering most people around here never read the IPA in the actual dictionary. and also, even less people read it and perfect their pronunciation skills for the sake of actually speaking to other people. it's all writing these days I guess.
You're welcome. As for writing, sran, a lot of us nulnew pamrel sivi nìNa'vi, ulte ke plltxe nìNa'vi... Also, be sure to note the edit to my last post. I had to reupload them...my first upload was a debug version that was missing a fix in the <infix> code...
|
|
|
|
|
Logged
|
|
|
|
Tirea Aean
Olo'eyktan
Palulukan Makto
     
Karma: 154
Offline
 United States
ToS Username: Tirea Aean
Posts: 7329
and whatnot and stuff.
|
 |
« Reply #18 on: May 23, 2011, 12:47:07 am » |
|
I noticed a "demoncli" file. what is that?
EDIT: it's an exe. but when I run it, it flashes a terminal super fast. before installing, it asked where meta and local are. that means running that exe file ran the vrrtepcli.py file. but in doing so, cmd kinda just openclosed. weird.
|
|
|
|
« Last Edit: May 23, 2011, 12:58:30 am by Tirea Aean »
|
Logged
|
Oe lu tirea aean, ulte lu oeru eana tirea. Na'vi Grammar Made Simple at tirea.learnnavi.org
Can't help helpin' |   |
|
|
|
|
Swoka Ikran
|
 |
« Reply #19 on: May 23, 2011, 12:57:35 am » |
|
I noticed a "demoncli" file. what is that?
That's the vrrtepcli.py compiled to an EXE...I had to rename it. On Windows, if there's a CMD and an EXE with the same name in the same folder (e.g. vrrtepcli.cmd and vrrtepcli.exe), the EXE takes priority and the CMD is ignored. Since there is a vrrtepcli.cmd (the Windows equivalent of vrrtepcli.sh), I could not name the EXE vrrtepcli.exe. If I did, the updater and help would be broken. I'm gonna go get some sleep now...if you find any more bugs, let me know and I'll fix them in the morning. 
|
|
|
|
|
Logged
|
|
|
|
|
|
Sіr. Ηaxalot
Palulukan Makto
   
Karma: 45
Offline
 Sweden
Posts: 1307
¯\_(ツ)_/¯
|
 |
« Reply #21 on: May 23, 2011, 01:30:00 am » |
|
May I suggest installing it in %APPDATA% or %PROGRAMFILES%, depending on if it's supposed to be visible to the user or not? I consider putting data/applications directly in the user directory as a bit of an ugly hack.
|
|
|
|
|
Logged
|
|
|
|
Tirea Aean
Olo'eyktan
Palulukan Makto
     
Karma: 154
Offline
 United States
ToS Username: Tirea Aean
Posts: 7329
and whatnot and stuff.
|
 |
« Reply #22 on: May 23, 2011, 01:31:54 am » |
|
Perhaps in Windows it is. On linux apparently it is not uncommon for a program to make a hidden file in the home directory. Though I see your point. the convention for Windows is generally to install everything to \Program Files\
EDIT: Oh. yeah, the stuff in that file don't need to be visible to the user after installation. Perhaps some tweaks to the windows versions to install everything to %APPDATA% is in order.
|
|
|
|
« Last Edit: May 23, 2011, 01:35:17 am by Tirea Aean »
|
Logged
|
Oe lu tirea aean, ulte lu oeru eana tirea. Na'vi Grammar Made Simple at tirea.learnnavi.org
Can't help helpin' |   |
|
|
|
|
Swoka Ikran
|
 |
« Reply #23 on: May 23, 2011, 02:00:19 am » |
|
Perhaps in Windows it is. On linux apparently it is not uncommon for a program to make a hidden file in the home directory. Though I see your point. the convention for Windows is generally to install everything to \Program Files\
EDIT: Oh. yeah, the stuff in that file don't need to be visible to the user after installation. Perhaps some tweaks to the windows versions to install everything to %APPDATA% is in order.
Well...I thought I was going to bed, but now I'm watching Mythbusters... Anyway, the reason I originally put the app in %userprofile%\.vrrtepcli on Windows is because doing this means it works on both Linux and Windows without requiring any changes. Using different folders requires OS and folder detection code. I'll look at it tomorrow.
|
|
|
|
« Last Edit: May 23, 2011, 02:05:28 am by Swoka Ikran »
|
Logged
|
|
|
|
Sіr. Ηaxalot
Palulukan Makto
   
Karma: 45
Offline
 Sweden
Posts: 1307
¯\_(ツ)_/¯
|
 |
« Reply #24 on: May 23, 2011, 06:32:41 am » |
|
Perhaps in Windows it is. On linux apparently it is not uncommon for a program to make a hidden file in the home directory. Though I see your point. the convention for Windows is generally to install everything to \Program Files\
EDIT: Oh. yeah, the stuff in that file don't need to be visible to the user after installation. Perhaps some tweaks to the windows versions to install everything to %APPDATA% is in order.
Well...I thought I was going to bed, but now I'm watching Mythbusters... Anyway, the reason I originally put the app in %userprofile%\.vrrtepcli on Windows is because doing this means it works on both Linux and Windows without requiring any changes. Using different folders requires OS and folder detection code. I'll look at it tomorrow. The thing is that the dot doesn't hide the folder in Windows and I thought that since the use of %userprofile% only applies for the windows version anyway, it wouldn't be much of a problem to change?
|
|
|
|
|
Logged
|
|
|
|
|
Swoka Ikran
|
 |
« Reply #25 on: May 23, 2011, 01:37:56 pm » |
|
The thing is that the dot doesn't hide the folder in Windows and I thought that since the use of %userprofile% only applies for the windows version anyway, it wouldn't be much of a problem to change?
VrrtepCLI references its resource files by absolute path right now: os.path.expanduser('~')+"/.vrrtepcli/metaWords.txt" I've found a way to make it not care about location: os.path.expanduser() could possibly be replaced with sys.path[0], but I need someone on Linux to verify sys.path[0] works (because some places say yes, others say no). Can someone run this on Linux or Mac please? I need to see if sys.path[0] works on it. Copy and save it as a .py (anywhere you like), then run from terminal. #!/usr/bin/python import sys print sys.path[0]
You should get the folder where the script is located as the output. If you don't...not good. Also, just as an aside: A lot of other cross-platform programs also use %userprofile%\.appname folders for data on Windows, so, IMO, using %userprofile%\.vrrtepcli isn't that big of a deal.
|
|
|
|
|
Logged
|
|
|
|
Tirea Aean
Olo'eyktan
Palulukan Makto
     
Karma: 154
Offline
 United States
ToS Username: Tirea Aean
Posts: 7329
and whatnot and stuff.
|
 |
« Reply #26 on: May 23, 2011, 02:07:36 pm » |
|
sys.path[0] on linux is the empty string. tirea@ean:~$ python Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print sys.path[0]
>>> sys.path ['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/pymodules/python2.7/gtk-2.0', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/pymodules/python2.7/ubuntuone-storage-protocol', '/usr/lib/pymodules/python2.7/ubuntuone-control-panel', '/usr/lib/pymodules/python2.7/libubuntuone', '/usr/lib/pymodules/python2.7/ubuntuone-client', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode'] >>>
|
|
|
|
|
Logged
|
Oe lu tirea aean, ulte lu oeru eana tirea. Na'vi Grammar Made Simple at tirea.learnnavi.org
Can't help helpin' |   |
|
|
|
|
Swoka Ikran
|
 |
« Reply #27 on: May 23, 2011, 02:13:25 pm » |
|
sys.path[0] on linux is the empty string. tirea@ean:~$ python Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print sys.path[0]
>>> sys.path ['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/pymodules/python2.7/gtk-2.0', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/pymodules/python2.7/ubuntuone-storage-protocol', '/usr/lib/pymodules/python2.7/ubuntuone-control-panel', '/usr/lib/pymodules/python2.7/libubuntuone', '/usr/lib/pymodules/python2.7/ubuntuone-client', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode'] >>>
You ran Python interactively...it's supposed to be empty in that case. It is on Windows too. Can you save the print command to a .py then run it from the command line (e.g. python test.py), rutxe?
|
|
|
|
|
Logged
|
|
|
|
Tirea Aean
Olo'eyktan
Palulukan Makto
     
Karma: 154
Offline
 United States
ToS Username: Tirea Aean
Posts: 7329
and whatnot and stuff.
|
 |
« Reply #28 on: May 23, 2011, 02:24:47 pm » |
|
oh right. should have seen that coming. /me facepalms
tirea@ean:~$ ./test.py /home/tirea
it works.
|
|
|
|
« Last Edit: May 23, 2011, 02:27:40 pm by Tirea Aean »
|
Logged
|
Oe lu tirea aean, ulte lu oeru eana tirea. Na'vi Grammar Made Simple at tirea.learnnavi.org
Can't help helpin' |   |
|
|
|
|
Swoka Ikran
|
 |
« Reply #29 on: May 23, 2011, 02:46:02 pm » |
|
oh right. should have seen that coming. /me facepalms
tirea@ean:~$ ./test.py /home/tirea
it works.
Cool. I'll go through the app and make the change... Do you want me to modify the Windows install script to put it in %Appdata%? Only difference will be that users will need to type: cd "%appdata%\.vrrtepcli" instead of the current cd "%userprofile%\.vrrtepcli" when they open CMD.
|
|
|
|
|
Logged
|
|
|
|
|