| Reply | « Previous Thread | Next Thread » |
|
hi everybody
maybe another newbie question (i'm still learning...hard hard) is it possible to execute a py script with appmgr ? edited : yes or even better directly from fexplorer(since appmgr itself is a python script wich is launched when we open a py script in fexplorer) _____ oops another question fexplorer now allow "open with", is it possible to open for exemple a txt file with fexplorer directly to a python text editor(i tried with ppeditor but didn't succed) thanks for any help or advise bye bye
Last edited by saad1396 : 2006-08-08 at 20:39.
|
|
No, it's currently not possible to run a execute a script directly with appmgr.
When clicking on a .py link the web browser on some phones downloads the script and gives it directly to the appmgr for execution. Direct execution of scripts with appmgr was disabled because of security concerns this might cause. Another point is that running a script inside appmgr would be yet another slightly different environment in addition to the script shell and the standalone app environments. |
|
thank you very much for answering me
but i like mission impossible indeed there seems to be some new difficulties on 3rd edition phones but for now i'm using n-gage(1st edition), there is no problem with web browser... actually i've just managed to execute a py script from a modified appmgr but there are still some problems anyway appmgr is just a py script(and a py script can execute another py script), i already renamed filebrowser.py to default.py in appmgr folder(it worked... a little ) but i'm planning to completely change appmgr(but keep the original for installing standalone applications : so important) if i can't successfully modify it(without the actual problems i encountered )work in progress...(if you want to try my actual modified appmgr :here) ![]()
Last edited by saad1396 : 2006-08-08 at 20:42.
|
|
Quote:
Thanks! |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
|
Quote:
execfile( filename[, globals[, locals]]) , where globals and locals are optional. Here's an example: from our script exf.py we want to execute c.py c.py contains the following: Code:
x=3 print x Code:
import appuifw, e32 def quit(): app_lock.signal() appuifw.app.exit_key_handler=quit f='C:\\Python\\c.py' execfile(f) app_lock=e32.Ao_lock() app_lock.wait()
Last edited by bogdan.galiceanu : 2008-02-19 at 16:42.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Use filebrowser.py to execute your python scripts. | zweiberg | Symbian Tools & SDKs | 1 | 2006-11-01 14:24 |
| WMLScript execution on Nokia phones never execute. | moricio | General Browsing | 0 | 2006-06-07 02:45 |
| How do FExplorer view files? | daveice | Audio | 1 | 2006-05-16 13:57 |
| Nokia 6600 phone memory / FExplorer | victorh81 | General Discussion | 2 | 2005-02-08 16:26 |
| Security Exception when I execute a MIDlet in Sun One | powercle | Mobile Java General | 0 | 2003-06-12 20:32 |