You Are Here:

Community: Developer Discussion Boards

#1 Old execute py scripts from appmgr or FExplorer - 2006-08-06, 03:32

Join Date: Jun 2006
Posts: 40
saad1396
Offline
Registered User
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.
Reply With Quote

#2 Old Re: can we execute py scripts from FExplorer ? - 2006-08-07, 16:51

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
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.
Reply With Quote

#3 Old Re: can we execute py scripts with fexplorer ? - 2006-08-08, 00:34

Join Date: Jun 2006
Posts: 40
saad1396
Offline
Registered User
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.
Reply With Quote

#4 Old Re: can we execute py scripts with fexplorer ? - 2008-02-19, 15:56

Join Date: Jan 2008
Posts: 22
hyon
Offline
Registered User
Quote:
Originally Posted by saad1396 View Post
anyway appmgr is just a py script(and a py script can execute another py script)
How do you execute another py script with a py script? I've been searching the forums, but can't seem to find it. Thanks!
Reply With Quote

#5 Old Re: can we execute py scripts with fexplorer ? - 2008-02-19, 16:36

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
Quote:
Originally Posted by hyon View Post
How do you execute another py script with a py script? I've been searching the forums, but can't seem to find it. Thanks!
You can do that by using the execfile command.
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
exf.py contains the following:
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()
This should show 3 on the phone screen.
Last edited by bogdan.galiceanu : 2008-02-19 at 16:42.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia