Первая директория в sys.path
🔸 Когда вы запускаете Python-интерпретатор в интерактивном режиме, в системные пути (sys.path) в самое начало добавляется текущая рабочая директория
>>> for path in sys.path:
... print(f'"{path}"')
""
"/usr/lib/python37.zip"
"/usr/lib/python3.7"
...
Первая строка пустая, что и означает текущую рабочую директорию.
🔸 Если вы запускаете интерпретатор передавая скрипт как аргумент, то история получается иная. На первом месте будет директория в которой располагается скрипт. А текущая рабочая директория игнорируется.
Пишем скрипт с таким содержанием:
# script.py
import sys
for path in sys.path:
print(f'"{path}"')
Запускаем
python3 /home/user/dev/script.py
Получаем
"/home/user/dev"
"/usr/lib/python37.zip"
"/usr/lib/python3.7"
...
🔸 Если вы запускаете скрипт по имени модуля то на первом месте будет домашняя директория текущего юзера
python3 -m script
"/home/user"
"/usr/lib/python37.zip"
"/usr/lib/python3.7"
...
Скрипт должен быть доступен для импорта
На что это влияет?
На видимость модулей для импорта. Если вы ждёте, что, запустив скрипт по пути, сможете импортировать модули из текущей рабочей директории, то вы ошибаетесь. Придётся добавлять путь os.getcwd() в sys.path самостоятельно или заранее объявлять переменную PYTHONPATH.
#basic
⏸ The Official DeckForge Gameplay Trailer is Here!
Our official gameplay trailer is finally here — your first true glimpse into the chaos, beauty & raw power of the DeckForge multiverse.
🔵Where explosive combos ignite,
🔵where Bosses rise from the Void,
🔵where Jokers are forged, broken, reborn & where Genesis begins.
This trailer marks the start of a new chapter — one that you will shape.
👀 Watch the trailer. Feel the energy. Step into the Forge.
Share your thoughts in the comments — we’re reading every single one.
Stay Forged! 🔥
#DeckForge#MobileGaming#GameplayReveal
Join the DeckForge Community:
🌐YouTube𝕏Twitter🎮Discord
👉Chat👉Announcements👉DeckForge
▶️DeckForge x RuStore Conference Recap
RuStore Mobile Conference has officially wrapped — and it was incredible.
🔵Over 1,000+ industry leaders, studios, publishers and creators gathered under one roof
🔵Our showcase zone was packed all day — tons of gameplay sessions, powerful feedback & new connections with top experts across CIS & Asia
🔵RuStore shared big insights on the future of their platform and expansion into Asian markets — and we’re thrilled to grow alongside them as one of the most anticipated cross-platform titles of 2026
🔵This year, RuStore held its first-ever awards for the best mobile apps and games.
Dozens of titles were recognized as the industry’s top performers
But we know one thing for sure: next year, DeckForge is taking its place on that stage!
Now it’s time to get back to the forge — polishing the upcoming release, preparing holiday events & crafting something truly special for our players.
Stay Forged 🔥
#DeckForge#RuStore#GameDev#MobileGaming
Join the DeckForge Community:
🌐YouTube𝕏Twitter🎮Discord
👉Chat👉Announcements👉DeckForge
🎮 KATTA YANGILIK: TapNation — Game Fest 2026 markazida!
Tayyor turing, geymerlar! Dunyoning eng yirik mobil o‘yin nashriyotlaridan biri bo‘lgan TapNation rasman Game Fest 2026 festivalida ishtirok etishini e’lon qiladi! 🚀
Bu shunchaki tadbir emas, bu mobil o‘yinlar olamidagi inqilobiy tajriba bo‘ladi. Biz bilan birga o‘yin sanoatining kelajagiga sho‘ng‘ing!
—————————
🎮 BIG NEWS: TapNation Takes Center Stage at Game Fest 2026!
Get ready, gamers! We are thrilled to officially announce that TapNation, one of the world’s leading mobile game publishers, will be lighting up Game Fest 2026! 🚀
This isn’t just an event; it’s an immersive journey into the future of mobile gaming. Join us as we push the boundaries of innovation and dive deep into the next generation of play
#TapNation#GameFest2026#MobileGaming#GamingCommunity#Gamedev#UzbekistanGaming#NewGames2026
Unlock unlimited fun & winning at Rummy24.
Download the App Now👉https://rummy24.sng.link/Averc/fcz2/lcft
.
.
.
#Rummy24#RummyApp#PlayRummy#UnlimitedFun#PlayRummy#onlinerummy#cardsgame#mobilegames#mobilegaming#mobilegame#cardgames#onlinegame#play#skills#win