diff --git a/IP-Viewer/Console.py b/IP-Viewer/Console.py index 5a71364..5efe7b3 100644 --- a/IP-Viewer/Console.py +++ b/IP-Viewer/Console.py @@ -1,11 +1,11 @@ #Console.py script for PyS60 -import sys -import e32 -import appuifw +import os, sys, e32, appuifw + ru = lambda text, : text.decode('utf-8', 'ignore') -class Console : + +class Console(): __module__ = __name__ diff --git a/IP-Viewer/ipviewer.py b/IP-Viewer/ipviewer.py index a16a882..4502e80 100644 --- a/IP-Viewer/ipviewer.py +++ b/IP-Viewer/ipviewer.py @@ -8,7 +8,12 @@ #Program code begins here # ipviewer v1.3 script by gauravssnl -import appuifw,e32,os,sys,re,globalui +import appuifw, e32 +import os +import sys +import re +import globalui + dir=appuifw.app.full_name()[0] path=dir+":\\System\\Apps\\IP Viewer\\" # print path diff --git a/PY-SysInfo/Py SysInfo.py b/PY-SysInfo/Py SysInfo.py index dd2379a..2f4a394 100644 --- a/PY-SysInfo/Py SysInfo.py +++ b/PY-SysInfo/Py SysInfo.py @@ -1,8 +1,7 @@ # Py SysInfo.py script by gauravssnl -import sysinfo -import appuifw -import e32 +import os, sys, sysinfo, appuifw, e32 + appuifw.app.title = u"Py SysInfo " dev = "gauravssnl" ru = lambda txt : str(txt).decode('utf-8','ignore') diff --git a/PyPastebin/PyPastebin.py b/PyPastebin/PyPastebin.py index 6e877af..53eb27d 100644 --- a/PyPastebin/PyPastebin.py +++ b/PyPastebin/PyPastebin.py @@ -4,6 +4,7 @@ import e32 import os import sys +import os.path import pastebin_python as P import powlite_fm import globalui diff --git a/PyPastebin/powlite_fm.py b/PyPastebin/powlite_fm.py index 6476c11..5f7e541 100644 --- a/PyPastebin/powlite_fm.py +++ b/PyPastebin/powlite_fm.py @@ -4,8 +4,14 @@ by爱不只是说说 2011/07/01 ''' + +import os +import sys +import os.path + cn = lambda x:x.decode('u8') +# create class manager: class manager: __name__ == 'powlite_fm' def __init__(s, filepath=None): @@ -251,4 +257,4 @@ def quit(s, x=0): #ext:过滤文件后缀,多个用,号隔开如ext=['.py', '.pyc'] #find:选择类型,find='file'查找文件,find='dir'查找目录。 #markmod:markmod=True时为标记模式 - #back:back=True时按取消将返回上级目录,否则退出 \ No newline at end of file + #back:back=True时按取消将返回上级目录,否则退出 diff --git a/PyPastebin/requests/api.py b/PyPastebin/requests/api.py index b7d4158..13629b8 100644 --- a/PyPastebin/requests/api.py +++ b/PyPastebin/requests/api.py @@ -11,6 +11,9 @@ """ +import os +import sys +import os.path from . import sessions def request(method, url, **kwargs): diff --git a/PyPastebin/requests/async.py b/PyPastebin/requests/async.py index 9488447..57f829b 100644 --- a/PyPastebin/requests/async.py +++ b/PyPastebin/requests/async.py @@ -9,6 +9,10 @@ ``Response``). A list of requests can be sent with ``map()``. """ +import os +import sys +import os.path + try: import gevent from gevent import monkey as curious_george @@ -85,4 +89,4 @@ def map(requests, prefetch=True, size=None): if prefetch: [r.response.content for r in requests] - return [r.response for r in requests] \ No newline at end of file + return [r.response for r in requests] diff --git a/PyPastebin/requests/models.py b/PyPastebin/requests/models.py index 84a2ec6..71abc24 100644 --- a/PyPastebin/requests/models.py +++ b/PyPastebin/requests/models.py @@ -8,6 +8,8 @@ """ import os +import sys +import time import urllib from urlparse import urlparse, urlunparse, urljoin, urlsplit diff --git a/README.md b/README.md index 4218082..c43e700 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,15 @@ # PyS60-Projects Collection of My PyS60 Projects + + +## Basic Requirements +Download Python from this site go to this link and download https://www.python.org and download the new version. + + +## Install +- Clone the repository `git clone https://github.com/Lencof/PyS60-Projects` +- Install requirements.txt `pip install -r requirements.txt` + + +## Use Pyinstaller +Use Pyinstaller to compile the program to bytecode, for the subsequent transfer of the file you can get acquainted with Pyinstaller on their official website https://www.pyinstaller.org/ Good luck everyone! diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..97d354c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,16 @@ +re +e32 +miso +ntlm +zlib +gzip +dumps +loads +socket +string +appuifw +warnings +globalui +httplib +logging +getLogger