[00:04:21] bliznezz is now away
[00:04:21] bliznezz is now online
[00:09:21] bliznezz is now away
[00:09:22] bliznezz is now away
[00:09:30] tranq is now offline
[00:16:44] ambush is now online
[00:41:41] fuzzy is now away
[01:00:04] bliznezz is now offline
[01:00:22] bliznezz is now away
[01:03:37] fuzzy is now online
[01:07:02] Сволота is now away
[01:08:20] Сволота is now online
[01:13:55] ambush is now online
[01:20:24] levsha is now online
[01:23:10] slav0nic is now online
[01:23:44] slav0nic is now offline
[01:26:01] fuzzy is now online
[01:26:03] fuzzy is now online
[01:30:26] fuzzy is now away
[01:30:28] Сволота is now away
[01:36:40] Сволота is now online
[01:36:42] levsha is now offline
[01:37:48] AlexZenon is now xa
[01:40:11] fuzzy is now away
[02:04:29] pmppmpp is now away
[02:13:27] fuzzy is now away
[02:18:37] pmppmpp is now online
[02:23:33] fuzzy is now away
[02:25:10] fuzzy is now away
[02:30:23] pmppmpp is now away
[02:30:58] ambush is now away
[02:35:13] fuzzy is now away
[02:40:58] ambush is now xa
[02:44:12] ambush is now online
[02:50:23] pmppmpp is now xa
[03:20:34] : Используемый вами псевдоним не зарегистрирован
[03:20:34] Сволота is now online
[03:20:34] pmppmpp is now xa
[03:20:34] bliznezz is now away
[03:20:34] madmercen is now online
[03:20:34] remo is now away
[03:20:34] ambush is now online
[03:20:34] AlexZenon is now xa
[03:20:34] magic_pony is now online
[03:20:34] fuzzy is now away
[03:20:34] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[03:22:03] pmppmpp is now online
[03:30:42] ambush is now online
[03:35:17] ambush is now online
[03:58:40] Сволота is now away
[04:00:38] Сволота is now online
[04:22:09] ambush is now online
[04:26:43] ambush is now offline
[04:27:04] ambush is now online
[04:27:04] pmppmpp is now offline
[04:30:56] Сволота is now away
[04:31:28] Сволота is now online
[04:38:06] ambush is now offline
[04:42:17] ambush is now online
[05:06:06] Сволота is now away
[05:06:50] Сволота is now online
[05:31:02] Сволота is now away
[05:34:56] Сволота is now online
[05:37:15] pmppmpp is now online
[05:43:08] Сволота is now away
[05:43:50] Сволота is now online
[06:03:51] fuzzy is now away
[06:21:43] alebul is now online
[06:29:16] dicos is now online
[06:32:00] Сволота is now away
[06:33:42] Сволота is now online
[06:44:58] Сволота is now away
[06:46:12] Сволота is now online
[06:49:25] fuzzy is now away
[06:51:18] Сволота is now away
[06:52:29] ambush is now offline
[07:01:18] Сволота is now xa
[07:12:55] alebul is now offline
[07:21:56] pmppmpp is now away
[07:25:54] Сволота is now online
[07:31:03] dicos is now away
[07:31:04] dicos is now away
[07:31:25] dicos is now away
[07:31:26] dicos is now online
[07:37:26] dicos is now away
[07:37:27] dicos is now away
[07:41:56] pmppmpp is now xa
[07:52:11] pmppmpp is now online
[08:14:12] remo is now offline
[08:14:13] remo is now away
[08:14:13] remo is now offline
[08:17:49] pmppmpp is now away
[08:18:15] pmppmpp is now online
[08:30:39] mrDoctorWho is now online
[08:35:04] pmppmpp is now away
[08:35:37] tranq is now online
[08:43:35] dicos is now away
[08:43:36] dicos is now online
[08:45:28] pmppmpp is now online
[08:48:37] dicos is now online
[08:51:07] tranq is now away
[08:51:07] tranq is now away
[09:05:11] remo is now away
[09:07:10] levsha is now online
[09:09:16] tranq is now away
[09:09:16] tranq is now online
[09:11:46] Veizdem is now online
[09:12:47] levsha is now away
[09:18:04] levsha is now offline
[09:19:14] fuzzy is now away
[09:20:06] Veizdem is now offline
[09:26:47] bliznezz is now away
[09:26:47] bliznezz is now online
[09:27:58] levsha is now away
[09:28:05] levsha is now online
[09:30:04] bliznezz is now offline
[09:30:05] levsha is now away
[09:30:33] levsha is now offline
[09:30:55] bliznezz is now online
[09:38:36] levsha is now away
[09:38:43] levsha is now online
[09:42:48] levsha is now offline
[09:43:33] tranq is now away
[09:43:33] tranq is now away
[09:46:09] fuzzy is now away
[09:47:35] fuzzy is now away
[09:52:25] levsha is now online
[09:53:00] slav0nic is now online
[09:53:46] pmppmpp is now away
[09:56:18] pmppmpp is now online
[09:57:07] slav0nic is now away
[09:57:54] tranq is now away
[09:57:54] tranq is now online
[09:59:42] levsha is now offline
[10:00:47] levsha is now online
[10:06:05] slav0nic is now online
[10:06:41] pmppmpp is now away
[10:08:35] levsha is now offline
[10:09:37] levsha is now online
[10:15:13] levsha is now offline
[10:17:17] remo is now online
[10:17:32] levsha is now online
[10:21:01] slav0nic is now away
[10:26:43] pmppmpp is now xa
[10:26:57] pmppmpp is now online
[10:27:19] remo is now away
[10:29:00] levsha is now offline
[10:29:41] slav0nic is now online
[10:36:57] pmppmpp is now away
[10:38:55] levsha is now online
[10:47:19] levsha is now offline
[10:47:30] levsha is now online
[10:50:32] fuzzy is now away
[10:51:01] fuzzy is now away
[10:52:37] levsha is now offline
[10:54:39] levsha is now online
[10:56:10] fuzzy is now away
[10:56:15] fuzzy is now away
[10:56:49] gigimon is now online
[10:56:57] pmppmpp is now xa
[10:58:54] pmppmpp is now online
[10:59:17] slav0nic is now away
[10:59:19] slav0nic is now online
[11:07:24] gigimon is now offline
[11:07:25] gigimon is now online
[11:08:22] levsha is now offline
[11:08:56] pmppmpp is now away
[11:09:03] levsha is now online
[11:11:30] bliznezz is now away
[11:11:30] bliznezz is now away
[11:14:12] bliznezz is now away
[11:14:12] bliznezz is now online
[11:21:22] pmppmpp is now online
[11:21:32] levsha is now offline
[11:22:43] levsha is now online
[11:26:58] mrDoctorWho is now away
[11:27:35] mrDoctorWho is now online
[11:39:33] Сволота is now away
[11:49:33] Сволота is now xa
[11:52:42] tranq is now away
[11:52:42] tranq is now away
[11:52:51] tranq is now away
[11:52:51] tranq is now online
[11:53:26] levsha is now offline
[11:58:04] fuzzy is now away
[12:02:59] fuzzy is now away
[12:04:14] nmk is now online
[12:10:15] fuzzy is now away
[12:10:16] fuzzy is now away
[12:21:25] огыешсук is now online
[12:22:13] AlexZenon is now online
[12:24:14] gigimon is now offline
[12:25:26] tranq is now away
[12:25:26] tranq is now away
[12:28:42] levsha is now online
[12:30:17] gigimon is now online
[12:30:32] gigimon is now offline
[12:30:52] fuzzy is now away
[12:31:18] gigimon is now online
[12:31:32] gigimon is now offline
[12:33:26] fuzzy is now online
[12:33:54] gigimon is now online
[12:34:08] gigimon is now offline
[12:34:41] Сволота is now online
[12:34:55] gigimon is now online
[12:35:14] gigimon is now offline
[12:38:00] bliznezz is now away
[12:38:00] bliznezz is now away
[12:39:49] Сволота is now away
[12:40:48] fuzzy is now online
[12:42:12] levsha is now away
[12:44:42] levsha is now online
[12:45:43] levsha is now away
[12:47:30] tranq is now away
[12:47:31] tranq is now online
[12:48:39] levsha is now online
[12:49:44] evch26 is now online
[12:49:49] Сволота is now xa
[12:52:27] Сволота is now online
[12:52:31] tranq is now online
[12:57:31] Сволота is now away
[12:58:17] evch26: Привет всем! Написал небольшой скрипт для работы с бд sqlite. Использую wxpython, sqlalchemy. Путь к базе следующий: "sqlite:///./data.db".
Объясните, почему происходит следующее: когда скрипт запускаю из редактора geany, файл с бд создается в том же каталоге, где находится сам скрипт. Если же запускаю скрипт отдельно (chmod u+x), то файл бд создается в домашнем каталоге.
[13:03:57] bliznezz is now away
[13:03:57] bliznezz is now online
[13:07:31] Сволота is now xa
[13:08:41] огыешсук is now online
[13:14:31] Сволота is now online
[13:18:01] pmppmpp is now away
[13:18:39] fuzzy: а как ты отдельно запускаешь?
[13:19:07] fuzzy: путь ./data.db значит "файл data.db в текущем каталоге"
[13:19:13] evch26: как исполняемый скрипт
[13:19:17] fuzzy: где "текущий каталог" - это характеристика процесса
[13:19:31] fuzzy: evch26: это как? какой-то командой?
[13:22:04] evch26: скрипт делаю исполняемым chmod u+x, дальше запускаю как обычное gui-приложение
[13:22:57] огыешсук is now online
[13:23:25] pmppmpp is now online
[13:23:38] fuzzy: это как?
[13:24:03] fuzzy: клик на иконке?
[13:24:11] evch26: мышкой кликаю на скрипте
[13:24:41] fuzzy: вон выше, про текущий каталог. если твой скрипт его не меняет, то он наследуется от родительского процесса
[13:24:46] fuzzy: то есть от твоей графической оболочки
[13:25:06] fuzzy: а у неё, видимо, твой домашний каталог стоит текущим каталогом
[13:25:23] fuzzy: !pydoc os.getcwd
[13:25:34] fuzzy: можешь это посмотреть
[13:26:12] evch26: т.е. при запуске скрипта посмотреть какой cwd?
[13:29:51] evch26: действительно, при запуске в редакторе путь такой, где находится скрипт, если запустить отдельно сам скрипт, то путь - домашний каталог
[13:32:23] evch26: как мне изменить это?
[13:32:48] remo is now online
[13:33:53] Сволота is now away
[13:34:15] mrDoctorWho: os.chdir
[13:34:49] levsha: evch26: сначала ответь на вопрос: где должен создаваться файл?
[13:35:09] Сволота is now online
[13:35:15] evch26: в том же каталоге, где и сам скрипт
[13:35:57] levsha: evch26: вот тогда там и нужно создавать, а не в текущем. Получить полный путь к скрипту, получить от него dirname часть
[13:36:41] levsha: вот сходу: https://stackoverflow.com/questions/595305/python-path-of-script
[13:38:34] evch26: спасибо всем за помощь!
[13:41:09] Сволота is now away
[13:42:49] remo is now away
[13:45:39] Сволота is now online
[13:48:11] pmppmpp is now away
[13:50:16] evch26 is now away
[13:50:36] evch26 is now online
[13:50:48] pmppmpp is now online
[13:51:41] Сволота is now away
[13:52:44] evch26 is now offline
[13:56:57] Сволота is now online
[13:57:17] levsha is now away
[13:57:53] огыешсук is now online
[13:59:04] dicos is now online
[13:59:04] dicos is now offline
[14:01:34] огыешсук is now online
[14:01:59] Сволота is now away
[14:03:01] levsha is now offline
[14:03:37] Сволота is now online
[14:15:51] огыешсук is now online
[14:18:02] огыешсук is now online
[14:35:45] огыешсук is now online
[14:37:43] levsha is now away
[14:37:46] Tony is now online
[14:37:46] levsha is now online
[14:42:29] slav0nic is now away
[14:47:52] огыешсук is now online
[14:51:43] slav0nic is now online
[14:52:35] levsha is now away
[14:54:18] levsha is now online
[14:56:27] fuzzy is now away
[15:00:27] bliznezz is now away
[15:00:27] bliznezz is now away
[15:04:19] pmppmpp is now away
[15:05:47] fuzzy is now away
[15:07:52] pmppmpp is now online
[15:11:47] огыешсук is now online
[15:14:18] bliznezz is now away
[15:14:18] bliznezz is now online
[15:17:40] mrDoctorWho is now away
[15:19:28] opka is now online
[15:19:55] slav0nic is now away
[15:21:52] fuzzy is now away
[15:23:21] slav0nic is now online
[15:24:06] mrDoctorWho is now online
[15:29:21] slav0nic is now away
[15:31:52] fuzzy is now away
[15:33:47] slav0nic is now online
[15:34:58] огыешсук is now online
[15:38:04] fuzzy is now away
[15:40:43] ambush is now online
[15:46:28] pmppmpp is now away
[15:46:41] pmppmpp is now online
[15:59:37] fuzzy is now away
[16:02:16] levsha is now away
[16:02:53] levsha is now online
[16:03:07] pmppmpp is now away
[16:07:46] slav0nic is now offline
[16:08:03] slav0nic is now online
[16:08:45] огыешсук is now online
[16:09:39] огыешсук is now online
[16:11:51] levsha is now offline
[16:11:52] levsha is now online
[16:19:42] огыешсук is now online
[16:23:07] pmppmpp is now xa
[16:24:34] pmppmpp is now online
[16:24:40] slav0nic is now away
[16:24:48] slav0nic is now online
[16:27:21] fuzzy is now away
[16:28:45] levsha is now away
[16:30:14] slav0nic is now away
[16:31:33] fuzzy is now away
[16:34:07] slav0nic is now online
[16:34:14] levsha is now offline
[16:35:03] pmppmpp is now away
[16:41:33] fuzzy is now away
[16:44:33] огыешсук is now online
[16:45:04] fuzzy is now away
[16:47:36] pmppmpp is now online
[16:47:44] pmppmpp is now offline
[16:55:04] fuzzy is now away
[16:56:57] dicos is now online
[16:59:00] levsha is now away
[16:59:02] levsha is now online
[17:00:26] dicos is now online
[17:27:27] Tony is now offline
[17:33:40] opka is now offline
[17:35:07] fuzzy is now away
[17:35:26] AlexZenon is now offline
[17:35:42] AlexZenon is now online
[17:39:42] levsha is now away
[17:40:09] ambush is now away
[17:44:55] levsha is now offline
[17:47:57] огыешсук is now online
[17:50:05] bliznezz is now away
[17:50:06] bliznezz is now away
[17:50:09] ambush is now xa
[17:50:32] bliznezz is now away
[17:50:33] bliznezz is now online
[17:51:34] ambush is now online
[17:53:48] slav0nic is now away
[17:55:04] slav0nic is now online
[17:56:14] levsha is now away
[17:56:15] levsha is now online
[18:02:21] remo is now online
[18:08:18] remo is now offline
[18:13:50] alebul is now online
[18:18:54] fuzzy is now away
[18:23:27] огыешсук is now online
[18:28:00] slav0nic is now away
[18:28:38] slav0nic is now online
[18:30:03] bliznezz is now offline
[18:31:09] bliznezz is now online
[18:33:33] огыешсук is now online
[18:34:57] levsha is now away
[18:37:19] bliznezz is now away
[18:37:20] bliznezz is now away
[18:37:29] fuzzy is now away
[18:40:27] levsha is now offline
[18:47:29] fuzzy is now away
[18:55:47] fuzzy is now away
[18:56:43] огыешсук is now online
[19:07:03] огыешсук is now online
[19:07:37] fuzzy is now away
[19:08:47] ambush is now away
[19:10:23] ambush is now online
[19:12:29] levsha is now away
[19:12:42] levsha is now online
[19:12:44] огыешсук is now online
[19:15:26] ambush is now away
[19:16:04] fuzzy is now away
[19:18:15] ambush is now online
[19:23:39] levsha is now offline
[19:23:43] levsha is now online
[19:27:53] fuzzy is now online
[19:30:46] slav0nic is now away
[19:30:48] dicos is now offline
[19:36:52] slav0nic is now online
[19:46:05] gigimon is now online
[19:52:38] slav0nic is now away
[19:54:00] ambush is now away
[19:54:06] slav0nic is now online
[19:57:25] ambush is now online
[20:02:28] alebul is now offline
[20:08:31] slav0nic is now away
[20:15:32] slav0nic is now online
[20:22:42] slav0nic is now away
[20:26:27] gigimon is now offline
[20:32:42] slav0nic is now xa
[20:34:37] levsha is now away
[20:36:40] gigimon is now online
[20:37:57] mrDoctorWho is now offline
[20:38:01] огыешсук is now online
[20:38:25] огыешсук is now offline
[20:39:37] levsha is now offline
[20:42:14] levsha is now away
[20:42:16] levsha is now online
[20:49:12] levsha is now away
[20:49:14] levsha is now offline
[20:52:28] slav0nic is now online
[20:53:05] ambush is now away
[21:01:10] gigimon is now online
[21:02:11] gigimon is now online
[21:02:41] slav0nic is now offline
[21:03:05] ambush is now xa
[21:04:07] gigimon is now offline
[21:04:11] fuzzy is now online
[21:05:28] gigimon is now online
[21:09:11] nmk is now offline
[21:10:42] gigimon is now offline
[21:13:52] ambush is now online
[21:16:35] gigimon is now online
[21:18:54] ambush is now away
[21:28:54] ambush is now xa
[21:31:54] ambush is now online
[21:55:00] AlexZenon is now online
[21:55:25] fuzzy is now online
[21:55:28] AlexZenon is now offline
[21:56:15] ambush is now away
[22:03:56] gigimon is now offline
[22:06:16] ambush is now xa
[22:12:01] gigimon is now online
[22:12:08] gigimon is now offline
[22:17:05] ambush is now online
[22:22:05] ambush is now away
[22:26:59] fuzzy is now away
[22:32:05] ambush is now xa
[22:33:21] AlexZenon is now online
[22:33:51] fuzzy is now online
[22:37:15] ambush is now online
[22:48:22] slav0nic is now online
[22:50:10] levsha is now away
[22:54:01] slav0nic is now away
[22:55:46] levsha is now offline
[22:56:10] slav0nic is now online
[23:02:08] fuzzy is now online
[23:02:37] fuzzy is now online
[23:02:58] levsha is now online
[23:04:43] madmercen is now away
[23:06:27] madmercen is now online
[23:13:15] Сволота is now away
[23:16:49] madmercen is now away
[23:19:07] bliznezz is now away
[23:19:08] bliznezz is now online
[23:20:10] slav0nic is now away
[23:20:23] Сволота is now online
[23:24:07] bliznezz is now away
[23:24:08] bliznezz is now away
[23:24:49] madmercen is now xa
[23:25:23] Сволота is now away
[23:27:12] slav0nic is now online
[23:35:03] madmercen is now online
[23:35:23] Сволота is now xa
[23:36:10] ambush is now away
[23:36:19] ambush is now online
[23:38:12] AlexZenon is now xa
[23:39:07] Сволота is now online
[23:42:33] madmercen is now away
[23:46:41] Сволота is now away
[23:48:25] slav0nic is now away
[23:48:26] ambush is now away
[23:50:33] madmercen is now xa
[23:52:01] ambush is now online
[23:56:41] Сволота is now xa
[23:57:39] levsha is now offline
[23:58:24] slav0nic is now xa