Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
where are scripts stored?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
_Mark_  
View profile  
 More options Jun 9 2009, 12:41 am
From: _Mark_ <eic...@gmail.com>
Date: Mon, 8 Jun 2009 21:41:04 -0700 (PDT)
Local: Tues, Jun 9 2009 12:41 am
Subject: where are scripts stored?
Is there a way to put externally written python scripts somewhere that
ASE will find them? The ScriptStorageAdapter code talks about "/data/
data/com.google.ase/scripts/" but that's just a locked down internal
path, not an /sdcard reference...

The bit in wiki/UserGuide about using adb to talk to AndroidProxy
remotely is great for writing and testing scripts off-phone (great for
using syntax highlighting editors and version control, after all) but
the step of getting them back on the phone seems to be missing.

(Stuffing them in android/AndroidScriptingEnvironment/res/raw/
python_scripts.zip and rebuilding ASE should work -- is that what we
have for now?)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Damon  
View profile  
 More options Jun 9 2009, 4:07 am
From: Damon <damonkoh...@gmail.com>
Date: Tue, 9 Jun 2009 10:07:51 +0200
Local: Tues, Jun 9 2009 4:07 am
Subject: Re: where are scripts stored?

As you said, scripts are currently stored in
/data/data/com.google.ase/scripts. The plan is to move that to the SD card,
however. Unless you have a rooted phone, the only way to add scripts
externally is to include them in python_scripts.zip. This will change very
soon though since it's pretty painful.

--
http://www.damonkohler.com/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
_Mark_  
View profile  
 More options Jun 9 2009, 10:58 am
From: _Mark_ <eic...@gmail.com>
Date: Tue, 9 Jun 2009 07:58:54 -0700 (PDT)
Local: Tues, Jun 9 2009 10:58 am
Subject: Re: where are scripts stored?
Great, thanks (that saves me from digging further into the java
code :-)

(Hmm, if I'm going to recompile anyway, adding java.io.File to
AndroidProxy might be a good shortcut...)

On Jun 9, 4:07 am, Damon <damonkoh...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tyler Lesmann  
View profile  
 More options Jun 10 2009, 3:13 pm
From: Tyler Lesmann <redhat...@gmail.com>
Date: Wed, 10 Jun 2009 12:13:12 -0700 (PDT)
Local: Wed, Jun 10 2009 3:13 pm
Subject: Re: where are scripts stored?
You might find this script useful.  Imports scripts from ase folder on
your SD card to /data/data/com.google.ase/scripts/.

http://tylerlesmann.com/2009/jun/10/import-scripts-android-scripting-...

On Jun 9, 8:58 am, _Mark_ <eic...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Eichin  
View profile  
 More options Jun 10 2009, 4:54 pm
From: Mark Eichin <eic...@gmail.com>
Date: Wed, 10 Jun 2009 16:54:13 -0400
Local: Wed, Jun 10 2009 4:54 pm
Subject: Re: where are scripts stored?
Hah! I'd gotten just far enough to realize that the interpreter was
running as the same isolated user as the proxy, and had tried some
os.listdir() calls (that failed.)  Thanks, that will be useful.

--
_Mark_ <eic...@thok.org> <eic...@gmail.com>

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Eichin  
View profile  
 More options Jun 12 2009, 2:16 pm
From: Mark Eichin <eic...@gmail.com>
Date: Fri, 12 Jun 2009 14:16:11 -0400
Local: Fri, Jun 12 2009 2:16 pm
Subject: Re: where are scripts stored?
I ended up taking it a step further:  typed in a bootstrap.py:

import urllib
u = urllib.urlopen("url of a file on one of my sites")
s = u.read()
file('/data/data/com.google.ase/scripts/g1.py', "w").write(s)

(there's a bit more for diags but the above should be all you need)

Then just edit the file on the server, go into ASE and tap bootstrap,
go back to the menu and you'll have a "g1.py", tap that and run it.
Simple way to let me edit with real python tools and without cabling
:-)

--
_Mark_ <eic...@thok.org> <eic...@gmail.com>

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ross  
View profile  
 More options Jun 16 2009, 8:19 pm
From: Ross <rossjohn...@gmail.com>
Date: Tue, 16 Jun 2009 17:19:55 -0700 (PDT)
Local: Tues, Jun 16 2009 8:19 pm
Subject: Re: where are scripts stored?
Brilliant idea!  To save space on the phone you could store all your
modules in the cloud and just have scripts that call them down from
your server when you need them.

On Jun 12, 11:16 am, Mark Eichin <eic...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »