i'm compiling python application using pyinstaller. the structure - d:\app\myprog.exe d:\app\config\settings.conf if run myprog.exe --switch value d:\app runs fine, if try run anywhere else c:\windows it's not finding settings.conf file complaining message: traceback (most recent call last): file "<string>", line 284, in <module> file "<string>", line 218, in main file "configparser.py", line 330, in configparser.nosectionerror: no section: 'database' myapp returned -1 database being first line in config file i'm trying reference. i'm referencing base_dir app here - # global path , config info try: base_dir = os.path.dirname(os.path.abspath(__file__)) except nameerror: # main py2exe script, not module base_dir = os.path.dirname(os.path.abspath(sys.argv[0])) so can config file - config = rawconfigparser() config.read(os.path.join(base_dir, 'config/settings.conf')) ...
i have integrated unity ads android library android project. @ beginning, after calling init unityads.init(this, consts.unity_game_id, this); onfetchcompleted method of callback called , can show video , callback completion on activity. i want reload video after completion , looking method "reload", "fetch" etc. on unityads class. seems there no way this. so, have tried call unityads.init again, couldn't callback or error on logs. how can reload video ad? 1 . don't call init twice. 2 . not using isready check if ad read shown before calling advertisement.show() function. copied directly unity website, code below should show ad , wait show ad, call showad() again. [serializefield] string gameid = "33675"; void awake() { advertisement.initialize (gameid, true); } void start() { showad();//show ad } public void showad(string zone = "") { #if unity_editor startcoroutine(waitforad ()); ...
Comments
Post a Comment