Первая директория в 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
¡Escándalo! 🤯
🔴#Novell, la mente detrás de $LIBRA, se habría encargado personalmente de pagar "fajos" de billetes de una financiera a #JavierMilei (@JMilei) 💰🇦🇷🗳️
https://revistaelpolitico.com/internacional/audios-senalan-pagos-efectivo-milei-caso-libra/
¡Escándalo! 🤯
🔴#Novell, la mente detrás de $LIBRA, se habría encargado personalmente de pagar "fajos" de billetes de una financiera a #JavierMilei (@JMilei) 💰🇦🇷🗳️
https://revistaelpolitico.com/internacional/audios-senalan-pagos-efectivo-milei-caso-libra/
😂¡Ahí no más para que se enojen los prianistas!
‼️La presidenta #ClaudiaSheinbaum es la jefa de Estado mejor evaluada de Latinoamérica, al tener 72.3 por ciento de aprobación, por encima de personajes como #NayibBukele, #JavierMilei y otros.
#MañaneraDelPueblo
Argentina tra ingerenze e sovranità sotto attacco
Le elezioni legislative del 26 ottobre segnano una svolta profonda: La Libertad Avanza di Milei conquista la maggioranza relativa, ma in un clima di astensione record e crescente disillusione popolare.
Dietro i numeri si nasconde un quadro inquietante: il peso crescente di Washington e Donald Trump sugli equilibri politici ed economici argentini. Promesse di miliardi in aiuti, pressioni finanziarie e persino interferenze dirette nella campagna elettorale delineano un nuovo capitolo di dipendenza e perdita di sovranità.
Il voto all’ONU contro la risoluzione che chiedeva la fine del blocco a Cuba è il simbolo di questa deriva: per la prima volta dopo trent’anni, Buenos Aires si allinea con Washington, rompendo una tradizione di indipendenza diplomatica e solidarietà latinoamericana.
Mentre il governo canta vittoria, cresce il disagio sociale, crollano salari e imprese, e intere famiglie scivolano nella povertà. La sfida che si apre ora non è solo parlamentare, ma nazionale: difendere le risorse del Paese, ricostruire il lavoro, riaffermare la dignità di un popolo che rifiuta di essere colonia economica o politica di nessuno.
Come scrive Giulio Chinappi, la vera domanda è:
Chi comanda oggi in Argentina, e per conto di chi?
#Argentina#Sovranità#Elezioni2025#JavierMilei#DonaldTrump#Cuba#Ingerenze#AmericaLatina#Peronismo#GiulioChinappi#PoliticaInternazionale
https://www.marx21.it/internazionale/largentina-tra-ingerenze-e-sovranita-sotto-attacco/
Major Crypto Transactions Reported Today
🚨 Massive Transfers Alert:
- 50M #MELANIA ($63M) from unknown wallet to unknown wallet. Details
- 16M #XLM ($5.26M) shifted between #Coinbase deposits and withdrawals. Details
- 164M #USDT ($164.3M) sent to Tether Treasury.
Meanwhile, Argentina's President Javier Milei denies promoting a crypto scam, stating, "I didn't promote it, I shared it." Source
#Crypto#MELANIA#XLM#USDT#Coinbase#Argentina#JavierMilei#WhaleAlert#Tether#Bitcoin#Singapore#DBS#CryptoRegulation#CryptoScam#Blockchain#Finance#Transactions#Wallets#Bullish#Treasury
Argentina's President Accused in LIBRA Scandal
Argentinian President Javier Milei faces fraud allegations linked to meme token LIBRA amidst a legal action led by former central bank chief. Kelsier Ventures CEO Hayden Davis claims Milei's actions triggered a crash in LIBRA's price, while insider selling reportedly occurred prior to Milei's tweet removal. Investigations are ongoing as accusations of insider knowledge circulate among influencers and projects involved. For more details, read the full report here.
#LIBRA#Argentina#Crypto#MemeTokens#Fraud#JavierMilei#Kelsier#KIPProtocol#InsiderTrading#LegalIssues#HaydenDavis#Volatility#Investigation#MarketCrash#Blockchain#CryptoScandal#Influencers#Jupiter#Meteora#Finance#VC
Argentina Investigates LIBRA Token Misconduct
Argentina's President Javier Milei calls for an investigation into LIBRA token's rug pull, requesting the Anti-Corruption Office's involvement to assess potential misconduct by government members. Findings will be forwarded to the court. Opposition considers impeachment due to the incident. Links: Statement, Watch, Details.
#LIBRA#Crypto#Argentina#investigation#rugpull#president#JavierMilei#impeachment#KIPProtocol#AntiCorruption#fundflow#temporalanalysis#MELANIA#ENRON#Solana#ETF#Bitcoin#adoption#blockchain#corruption#misconduct